mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 22:31:21 -08:00
yuzu - Fix duplicate logs
This commit is contained in:
parent
020d005d8c
commit
b30c5370b1
@ -14,6 +14,13 @@
|
|||||||
|
|
||||||
namespace Debugger {
|
namespace Debugger {
|
||||||
void ToggleConsole() {
|
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)
|
#if defined(_WIN32) && !defined(_DEBUG)
|
||||||
FILE* temp;
|
FILE* temp;
|
||||||
if (UISettings::values.show_console) {
|
if (UISettings::values.show_console) {
|
||||||
|
@ -908,8 +908,6 @@ void GMainWindow::UpdateUITheme() {
|
|||||||
#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