summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorGravatar Carl Kenner2018-10-05 12:52:49 +0930
committerGravatar Carl Kenner2018-10-07 13:24:04 +1030
commitf5f6292810dab70bc9be0fa4d9f37fe2b5544d86 (patch)
tree1ec449a6d6e33a36a3133de2196954a6967af9ad /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #1450 from FearlessTobi/port-4312 (diff)
downloadyuzu-f5f6292810dab70bc9be0fa4d9f37fe2b5544d86.tar.gz
yuzu-f5f6292810dab70bc9be0fa4d9f37fe2b5544d86.tar.xz
yuzu-f5f6292810dab70bc9be0fa4d9f37fe2b5544d86.zip
logging: Add DebuggerBackend for logging to Visual Studio
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 1d951ca3f..bab465c1d 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -75,6 +75,9 @@ static void InitializeLogging() {
75 const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir); 75 const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
76 FileUtil::CreateFullPath(log_dir); 76 FileUtil::CreateFullPath(log_dir);
77 Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE)); 77 Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE));
78#ifdef _WIN32
79 Log::AddBackend(std::make_unique<Log::DebuggerBackend>());
80#endif
78} 81}
79 82
80/// Application entry point 83/// Application entry point