diff options
| -rw-r--r-- | src/yuzu/debugger/console.cpp | 7 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/yuzu/debugger/console.cpp b/src/yuzu/debugger/console.cpp index e3d2d975f..320898f6a 100644 --- a/src/yuzu/debugger/console.cpp +++ b/src/yuzu/debugger/console.cpp | |||
| @@ -14,6 +14,13 @@ | |||
| 14 | 14 | ||
| 15 | namespace Debugger { | 15 | namespace Debugger { |
| 16 | void ToggleConsole() { | 16 | void ToggleConsole() { |
| 17 | static bool console_shown = false; | ||
| 18 | if (console_shown == UISettings::values.show_console) { | ||
| 19 | return; | ||
| 20 | } else { | ||
| 21 | console_shown = UISettings::values.show_console; | ||
| 22 | } | ||
| 23 | |||
| 17 | #if defined(_WIN32) && !defined(_DEBUG) | 24 | #if defined(_WIN32) && !defined(_DEBUG) |
| 18 | FILE* temp; | 25 | FILE* temp; |
| 19 | if (UISettings::values.show_console) { | 26 | if (UISettings::values.show_console) { |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 05a8ae6d2..9ce8d7c27 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -908,8 +908,6 @@ void GMainWindow::UpdateUITheme() { | |||
| 908 | #endif | 908 | #endif |
| 909 | 909 | ||
| 910 | int main(int argc, char* argv[]) { | 910 | int main(int argc, char* argv[]) { |
| 911 | Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>()); | ||
| 912 | |||
| 913 | MicroProfileOnThreadCreate("Frontend"); | 911 | MicroProfileOnThreadCreate("Frontend"); |
| 914 | SCOPE_EXIT({ MicroProfileShutdown(); }); | 912 | SCOPE_EXIT({ MicroProfileShutdown(); }); |
| 915 | 913 | ||