|
|
|
@ -207,12 +207,11 @@ namespace lunarium
|
|
|
|
mpInput->Initialize(mpWindow);
|
|
|
|
mpInput->Initialize(mpWindow);
|
|
|
|
|
|
|
|
|
|
|
|
// GUI
|
|
|
|
// GUI
|
|
|
|
mGUI.Initialize(mpWindow);
|
|
|
|
result = mGUI.Initialize(mpWindow);
|
|
|
|
result = LogGui::GetInstance().Initialize();
|
|
|
|
|
|
|
|
if (Failed(result))
|
|
|
|
if (Failed(result))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Logger::Log(LogCategory::CORE, LogLevel::WARNING,
|
|
|
|
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
|
|
|
|
// SCRIPTING
|
|
|
|
@ -307,7 +306,7 @@ namespace lunarium
|
|
|
|
std::string command;
|
|
|
|
std::string command;
|
|
|
|
if (LuaConsole::GetInstance().GetNewCommand(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());
|
|
|
|
OpRes result = ScriptManager::RunScript(command.c_str());
|
|
|
|
// NOTE: Ignoring script result
|
|
|
|
// NOTE: Ignoring script result
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|