benilla-re systems structs docs

ParseProcessCommandLine

function · storm · boundary

Address
0x64fda0 · 29 bytes, up to 0x64fdbc
Signature
uint32_t __stdcall (uint32_t arg1, uint32_t arg2)
Meaning
Parses GetCommandLineA's text against the registered switches through 0x64f3c0
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 1

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