benilla-re systems structs docs

RegisterBaseSwitches

function · unassigned

Address
0x419c70 · 22 bytes, up to 0x419c85
Signature
void __cdecl (void)
Meaning
Registers the fifteen base command-line switches and parses the process command line
Confidence
verified, proof one
Finding
storm/scmd#the-clients-switch-readers

Finding: The client's switch readers in storm: command-line switches

CmdLineGetBool(id) is SCmdGetBool(id). CmdLineGetString(id) reads the switch into the one 260-byte buffer 0x883c90 with SCmdGetString and returns that buffer, so a switch the command line did not give reads as an empty string, and each call overwrites the previous answer. 0x419c70 registers the fifteen base switches of the table 0x801088 and then parses the process command line through 0x64fda0. The base ids are 0 d3d, 1 datadir, 2 nolagfix, 3 loadfile, 4 gametype, 5 opengl, 6 swtnl, 7 timedemo, 8 rez, 9 depth, 10 detail, 11 sound, 12 fullscreen, 13 22050, 14 nowarnings; 1, 3, 4 and 8 to 11 carry the flag 0x20000 and take a string.

The derivation is in the doc.

Callers 1

Callees 2

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