ConsoleCommandGxRestart
function · console · orchestration
- Address
0x639f60· 251 bytes, up to0x63a05a- Signature
uint32_t __fastcall (const char *name, const char *args)- Meaning
- Validates the working format, switches the device to it with fallbacks, and sets the window title
- 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 1
- RestoreVideoDefaults console
Callees 9
- SetWindowTextUtf8 unassigned
- 0x435c50 unassigned
- DrainWorldFadingModels ui
- 0x589be0 gx
- 0x589c90 gx
- WriteFormatToCVars console
- CommitDisplayCVars console
- ValidateDeviceFormat console
- ConsoleWrite console
Calls and jumps by a bare address, from tables/calls.tsv.