summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index e2812ca61..584967f5c 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -10,9 +10,10 @@
10 10
11#include <fmt/ostream.h> 11#include <fmt/ostream.h>
12 12
13#include "common/common_paths.h"
14#include "common/detached_tasks.h" 13#include "common/detached_tasks.h"
15#include "common/file_util.h" 14#include "common/fs/fs.h"
15#include "common/fs/fs_paths.h"
16#include "common/fs/path_util.h"
16#include "common/logging/backend.h" 17#include "common/logging/backend.h"
17#include "common/logging/filter.h" 18#include "common/logging/filter.h"
18#include "common/logging/log.h" 19#include "common/logging/log.h"
@@ -82,9 +83,9 @@ static void InitializeLogging() {
82 83
83 Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>()); 84 Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
84 85
85 const std::string& log_dir = FS::GetUserPath(FS::UserPath::LogDir); 86 const auto& log_dir = FS::GetYuzuPath(FS::YuzuPath::LogDir);
86 FS::CreateFullPath(log_dir); 87 void(FS::CreateDir(log_dir));
87 Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE)); 88 Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir / LOG_FILE));
88#ifdef _WIN32 89#ifdef _WIN32
89 Log::AddBackend(std::make_unique<Log::DebuggerBackend>()); 90 Log::AddBackend(std::make_unique<Log::DebuggerBackend>());
90#endif 91#endif