Crash log: Save config file in new crash save chunk

This commit is contained in:
Jonathan G Rennison
2020-04-21 18:17:13 +01:00
parent 850f860f2d
commit eef6ad7b2a
13 changed files with 90 additions and 10 deletions

View File

@@ -2133,6 +2133,18 @@ DEF_CONSOLE_CMD(ConDumpLoadDebugLog)
return true;
}
DEF_CONSOLE_CMD(ConDumpLoadDebugConfig)
{
if (argc == 0) {
IConsoleHelp("Dump load debug config.");
return true;
}
std::string dbgc = _loadgame_DBGC_data;
PrintLineByLine(const_cast<char *>(dbgc.c_str()));
return true;
}
DEF_CONSOLE_CMD(ConCheckCaches)
{
if (argc == 0) {
@@ -2647,6 +2659,7 @@ void IConsoleStdLibRegister()
IConsoleCmdRegister("dump_st_flow_stats", ConStFlowStats, nullptr, true);
IConsoleCmdRegister("dump_game_events", ConDumpGameEvents, nullptr, true);
IConsoleCmdRegister("dump_load_debug_log", ConDumpLoadDebugLog, nullptr, true);
IConsoleCmdRegister("dump_load_debug_config", ConDumpLoadDebugConfig, nullptr, true);
IConsoleCmdRegister("check_caches", ConCheckCaches, nullptr, true);
IConsoleCmdRegister("show_town_window", ConShowTownWindow, nullptr, true);
IConsoleCmdRegister("show_station_window", ConShowStationWindow, nullptr, true);