benilla-re systems structs docs

SetCVarInt

function · console · orchestration

Address
0x639bc0 · 53 bytes, up to 0x639bf4
Signature
void __fastcall (CVar *cvar, int32_t value)
Meaning
Formats an integer and sets the CVar to it with apply and force
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 2

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