WriteFormatToCVars
function · console · primitive
- Address
0x639c40· 627 bytes, up to0x639eb2- Signature
void __thiscall (void *this)- Meaning
- Writes twelve fields of a device-format record into their gx CVars as text
- Confidence
- verified, proof one
- Finding
- console/display#restart-and-defaults
Finding: Restart and defaults in console: display
gxRestart (0x639f60) validates the working record, asks the device to switch (0x589be0) and on success keeps the record as
the last good one and applies the latched display CVars (0x639ec0). On failure it writes unable to set requested display mode, retries with
the last good record (unable to set last good mode), then the second fixed record (unable to set default format), then 640 × 480,
and after any retry writes the working record into the CVars (0x639c40). It ends by setting the window title and returns 1.
RestoreVideoDefaults (0x639a20) sets the working record to the hardware row's default format, writes it, restarts, and sets
the quality CVars with 0x639a60.
The derivation is in the doc.
Callers 3
- RestoreVideoDefaults console
- ConsoleCommandGxRestart console
- ConsoleDeviceInitialize console
Callees 3
- CommitDisplayCVars console
- CVar::Set cvar
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.