diff options
author | James Rowe <jroweboy@gmail.com> | 2018-07-12 09:11:43 +0200 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2018-07-12 09:11:43 +0200 |
commit | b30c5370b10a4a0fc2710067c8faa72ea03a5f80 (patch) | |
tree | 4e9143094f7addbca8d3ce4c7bcded111748280e | |
parent | yuzu-cmd Apply the filter string from settings (diff) | |
download | yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar.gz yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar.bz2 yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar.lz yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar.xz yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.tar.zst yuzu-b30c5370b10a4a0fc2710067c8faa72ea03a5f80.zip |
-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 @@ namespace Debugger { void ToggleConsole() { + static bool console_shown = false; + if (console_shown == UISettings::values.show_console) { + return; + } else { + console_shown = UISettings::values.show_console; + } + #if defined(_WIN32) && !defined(_DEBUG) FILE* temp; 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() { #endif int main(int argc, char* argv[]) { - Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>()); - MicroProfileOnThreadCreate("Frontend"); SCOPE_EXIT({ MicroProfileShutdown(); }); |