SetBaseAndDataPaths
function · client
- Address
0x402210· 161 bytes, up to0x4022b0- Signature
void __cdecl (void)- Meaning
- Sets the working folder and base path from -datadir or the exe folder, the data layout word, and Data\ as data path
- Confidence
- verified, proof two
- Finding
- storm/mount#install-folder-and-data-path
Finding: Install folder and data path in storm: mounting the archives
Before the mount, 0x402210 picks the folder the client runs from: the switch -datadir when the
command line gives it, else the folder of the exe with its trailing backslash. It makes that the
working directory and Storm's base path. It then asks which root holds model.MPQ and which
holds interface.MPQ, records a layout word 0x88273c (1 when both are under ..\Data\, 2 when
model.MPQ is there and interface.MPQ is not, 0 otherwise), and sets Storm's data path to Data\
in every case. ClientMain writes the exe's folder to the registry value
World of Warcraft\InstallPath only when the layout word is 0.
The derivation is in the doc.
Callers 1
- ClientMain client
Callees 8
- FindBaseArchiveRoot client
- CmdLineGetString unassigned
- OsSetCurrentDirectory os
- OsGetExeFolder unassigned
- SFileSetBasePath storm
- SFileSetDataPath storm
- SFileSetExtraOpenFlags storm
- SFileClearKeepLooseFlags storm
Calls and jumps by a bare address, from tables/calls.tsv.