benilla-re systems structs docs

ErrorDisplayMinLevelCallback

function · client · orchestration

Address
0x402f60 · 63 bytes, up to 0x402f9e
Signature
bool __fastcall (CVar *cvar, const char *oldText, const char *newText, void *callbackArg)
Meaning
Applies ErrorLevelMin: refuses a value outside 0 to 3 with a message, else sets the low level and prints the status
Confidence
verified, proof one
Name from
the community database (idb)
Finding
sysmsg#error-level-settings

Finding: Error level settings in sysmsg

ErrorLevelMin (default 1) and ErrorLevelMax (default 3) are registered with the callbacks 0x402f60 and 0x4030b0. Each reads the new text with SStrToInt and takes it only for a value of 0 to 3. 0x402f60 then calls SysMsgSetMinDisplayLevel, which raises the high level to the value when it is below; 0x4030b0 calls SysMsgSetMaxDisplayLevel, which lowers the low level to it when it is above. Both then call 0x402fa0 and return 1. Any other value is refused: the callback writes %i is not valid, valid values are 0 - %i with the value and 3 in console class 0 and returns 0, which vetoes the new text.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.