benilla-re systems structs docs

RestoreVideoDefaults

function · console · orchestration

Address
0x639a20 · 61 bytes, up to 0x639a5c
Signature
void __cdecl (void)
Meaning
Sets the working record to the hardware row's default format, restarts the device and sets the quality CVars
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

Callees 4

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