MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / LogCommandExecution

Method LogCommandExecution

src/command.cpp:261–264  ·  view source on GitHub ↗

Helper to make a desync log for a command. */

Source from the content-addressed store, hash-verified

259
260/** Helper to make a desync log for a command. */
261void CommandHelperBase::LogCommandExecution(Commands cmd, StringID err_message, const CommandDataBuffer &args, bool failed)
262{
263 Debug(desync, 1, "{}: {:08x}; {:02x}; {:02x}; {:08x}; {:08x}; {} ({})", failed ? "cmdf" : "cmd", (uint32_t)TimerGameEconomy::date.base(), TimerGameEconomy::date_fract, _current_company, cmd, err_message, FormatArrayAsHex(args), GetCommandName(cmd));
264}
265
266/**
267 * Prepare for the test run of a command proc call.

Callers

nothing calls this directly

Calls 3

FormatArrayAsHexFunction · 0.85
GetCommandNameFunction · 0.85
baseMethod · 0.45

Tested by

no test coverage detected