Merge pull request #4418 from FearlessTobi/port-1441

Port yuzu-emu/yuzu#1441: "logging: Add DebuggerBackend for logging to Visual Studio"
This commit is contained in:
Pengfei Zhu 2018-12-04 22:20:41 +08:00 committed by GitHub
commit cd80a0df8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 2 deletions

View file

@ -116,6 +116,9 @@ static void InitializeLogging() {
const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
FileUtil::CreateFullPath(log_dir);
Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE));
#ifdef _WIN32
Log::AddBackend(std::make_unique<Log::DebuggerBackend>());
#endif
}
GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {