mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 08:00:04 +00:00
Fix duplicated logs on windows
This commit is contained in:
parent
1b94f25e6c
commit
98c150e7fc
@ -34,6 +34,12 @@ void ToggleConsole() {
|
|||||||
freopen_s(&temp, "NUL", "w", stderr);
|
freopen_s(&temp, "NUL", "w", stderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (UISettings::values.show_console) {
|
||||||
|
Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
|
||||||
|
} else {
|
||||||
|
Log::RemoveBackend(Log::ColorConsoleBackend::Name());
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} // namespace Debugger
|
} // namespace Debugger
|
||||||
|
@ -1338,8 +1338,6 @@ void GMainWindow::SyncMenuUISettings() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
|
|
||||||
|
|
||||||
MicroProfileOnThreadCreate("Frontend");
|
MicroProfileOnThreadCreate("Frontend");
|
||||||
SCOPE_EXIT({ MicroProfileShutdown(); });
|
SCOPE_EXIT({ MicroProfileShutdown(); });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user