Add console command to dump desync message log
This commit is contained in:
@@ -2113,6 +2113,19 @@ DEF_CONSOLE_CMD(ConDumpCommandLog)
|
|||||||
return true;
|
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)
|
DEF_CONSOLE_CMD(ConDumpInflation)
|
||||||
{
|
{
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
@@ -2980,6 +2993,7 @@ void IConsoleStdLibRegister()
|
|||||||
|
|
||||||
IConsoleCmdRegister("getfulldate", ConGetFullDate, nullptr, true);
|
IConsoleCmdRegister("getfulldate", ConGetFullDate, nullptr, true);
|
||||||
IConsoleCmdRegister("dump_command_log", ConDumpCommandLog, nullptr, true);
|
IConsoleCmdRegister("dump_command_log", ConDumpCommandLog, nullptr, true);
|
||||||
|
IConsoleCmdRegister("dump_desync_msgs", ConDumpDesyncMsgLog, nullptr, true);
|
||||||
IConsoleCmdRegister("dump_inflation", ConDumpInflation, nullptr, true);
|
IConsoleCmdRegister("dump_inflation", ConDumpInflation, nullptr, true);
|
||||||
IConsoleCmdRegister("dump_cpdp_stats", ConDumpCpdpStats, nullptr, true);
|
IConsoleCmdRegister("dump_cpdp_stats", ConDumpCpdpStats, nullptr, true);
|
||||||
IConsoleCmdRegister("dump_veh_stats", ConVehicleStats, nullptr, true);
|
IConsoleCmdRegister("dump_veh_stats", ConVehicleStats, nullptr, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user