Skip to content

Commit d6bd9de

Browse files
authored
Log important items from cleo config (#561)
1 parent 36c7e62 commit d6bd9de

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

source/CleoBase.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,21 @@ namespace CLEO
225225
CleoInstance.saveSlot = saveSlot;
226226
TRACE("Starting new game session, save slot: %d", saveSlot);
227227

228+
// log important config settings
229+
TRACE("Config summary:");
230+
TRACE(" MainScmLegacyMode = %d", CConfigManager::ReadInt("General", "MainScmLegacyMode", 0));
231+
TRACE(" StrictValidation = %d", CConfigManager::ReadInt("Plugins", "StrictValidation", 0));
232+
const auto scriptLogEnabled = CConfigManager::ReadInt("Plugins", "DebugUtils.ScriptLog.Enabled", 0);
233+
if (scriptLogEnabled != 0)
234+
{
235+
const auto path = (GetLogDirectory() + "\\cleo_script.log").c_str();
236+
TRACE(" DebugUtils.ScriptLog.Enabled = %d, path: %s", scriptLogEnabled, path);
237+
}
238+
else
239+
{
240+
TRACE(" DebugUtils.ScriptLog.Enabled = 0");
241+
}
242+
228243
// execute registered callbacks
229244
CleoInstance.CallCallbacks(eCallbackId::GameBegin, saveSlot);
230245
}

0 commit comments

Comments
 (0)