|
|
|
@ -34,6 +34,12 @@ void ToggleConsole() {
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|