summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorGravatar FearlessTobi2021-01-04 04:36:50 +0100
committerGravatar FearlessTobi2021-01-04 04:36:50 +0100
commitbeb951770a920fce5d993c024402146aa0c92c34 (patch)
tree74605a66aa402bd4d7298d18080cc55cd09a8168 /src/common/logging/backend.cpp
parentDelete the old log file before rotating (#5675) (diff)
downloadyuzu-beb951770a920fce5d993c024402146aa0c92c34.tar.gz
yuzu-beb951770a920fce5d993c024402146aa0c92c34.tar.xz
yuzu-beb951770a920fce5d993c024402146aa0c92c34.zip
Address review comments
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index bec931ceb..2d4d2e9e7 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -146,16 +146,16 @@ void ColorConsoleBackend::Write(const Entry& entry) {
146} 146}
147 147
148FileBackend::FileBackend(const std::string& filename) : bytes_written(0) { 148FileBackend::FileBackend(const std::string& filename) : bytes_written(0) {
149 if (FileUtil::Exists(filename + ".old.txt")) { 149 if (Common::FS::Exists(filename + ".old.txt")) {
150 FileUtil::Delete(filename + ".old.txt"); 150 Common::FS::Delete(filename + ".old.txt");
151 } 151 }
152 if (FileUtil::Exists(filename)) { 152 if (Common::FS::Exists(filename)) {
153 FileUtil::Rename(filename, filename + ".old.txt"); 153 Common::FS::Rename(filename, filename + ".old.txt");
154 } 154 }
155 155
156 // _SH_DENYWR allows read only access to the file for other programs. 156 // _SH_DENYWR allows read only access to the file for other programs.
157 // It is #defined to 0 on other platforms 157 // It is #defined to 0 on other platforms
158 file = FileUtil::IOFile(filename, "w", _SH_DENYWR); 158 file = Common::FS::IOFile(filename, "w", _SH_DENYWR);
159} 159}
160 160
161void FileBackend::Write(const Entry& entry) { 161void FileBackend::Write(const Entry& entry) {