benilla-re systems structs docs

s_baseSwitches

global · unassigned

Address
0x801088 · 240 bytes, up to 0x801177
Type
uint32_t[60]
Meaning
Holds the 15 base switch records of flags, id, name and 0, d3d id 0 to nowarnings id 14, that 0x419c70 registers
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.