Add console command to dump desync message log

pull/206/head
Jonathan G Rennison 4 years ago
parent 1f54c8a018
commit a20112e48f

@ -2113,6 +2113,19 @@ DEF_CONSOLE_CMD(ConDumpCommandLog)
return true;
}
DEF_CONSOLE_CMD(ConDumpDesyncMsgLog)
{
if (argc == 0) {
IConsoleHelp("Dump log of desync messages.");
return true;
}
char buffer[32768];
DumpDesyncMsgLog(buffer, lastof(buffer));
PrintLineByLine(buffer);
return true;
}
DEF_CONSOLE_CMD(ConDumpInflation)
{
if (argc == 0) {
@ -2980,6 +2993,7 @@ void IConsoleStdLibRegister()
IConsoleCmdRegister("getfulldate", ConGetFullDate, nullptr, true);
IConsoleCmdRegister("dump_command_log", ConDumpCommandLog, nullptr, true);
IConsoleCmdRegister("dump_desync_msgs", ConDumpDesyncMsgLog, nullptr, true);
IConsoleCmdRegister("dump_inflation", ConDumpInflation, nullptr, true);
IConsoleCmdRegister("dump_cpdp_stats", ConDumpCpdpStats, nullptr, true);
IConsoleCmdRegister("dump_veh_stats", ConVehicleStats, nullptr, true);

Loading…
Cancel
Save