From 6a03409ae3d45dc3a3768c4613d010a63e41a8d5 Mon Sep 17 00:00:00 2001 From: Joeyrp Date: Tue, 28 Sep 2021 14:24:06 -0400 Subject: [PATCH] Fixed bug: LogGUI was being initialized twice causing it to hear log messages twice. --- src/core/core.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index b44596c..0b8f1d5 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -207,12 +207,11 @@ namespace lunarium mpInput->Initialize(mpWindow); // GUI - mGUI.Initialize(mpWindow); - result = LogGui::GetInstance().Initialize(); + result = mGUI.Initialize(mpWindow); if (Failed(result)) { Logger::Log(LogCategory::CORE, LogLevel::WARNING, - "Could not initialized the debug log window: %s", result.Description); + "Could not initialized the main GUI system: %s", result.Description); } // SCRIPTING @@ -307,7 +306,7 @@ namespace lunarium std::string command; if (LuaConsole::GetInstance().GetNewCommand(command)) { - Logger::Log(LogCategory::CORE, LogLevel::INFO, "New LUA command: %s", command.c_str()); + // Logger::Log(LogCategory::CORE, LogLevel::INFO, "New LUA command: %s", command.c_str()); OpRes result = ScriptManager::RunScript(command.c_str()); // NOTE: Ignoring script result }