CmdLineGetString
function · unassigned
- Address
0x419c20· 22 bytes, up to0x419c35- Signature
const char * __fastcall (uint32_t id)- Meaning
- Reads a switch's string into one shared 260-byte buffer and returns the buffer
- 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 2
- SetBaseAndDataPaths client
- ConsoleDeviceInitialize console
Callees 1
- SCmdGetString storm
Calls and jumps by a bare address, from tables/calls.tsv.