FormatArchivePath
function · client
- Address
0x402320· 37 bytes, up to0x402344- Signature
void __fastcall (char *buffer, uint32_t size, uint32_t root, const char *name)- Meaning
- Formats an archive root followed by a file name into a buffer
- Confidence
- verified, proof two
- Finding
- storm/mount#base-and-speech-archives
Finding: Base and speech archives in storm: mounting the archives
speech2.MPQ opens next, if present, at the next priority. Then each patch that opened gets a child record for
the prefix speech2 if a real speech2.MPQ exists. Then the ten base archives, model, texture, terrain,
wmo, sound, misc, interface, fonts, speech, dbc (.MPQ), at the fixed priorities 0x3f down to 0x36
whether or not each opens. A base or speech2 name is tried under Data\ and then ..\Data\. An open that fails with error 0x26, 0x8510006c or 0x85100083 ends the client with Failed to open archive %s (the rooted path; storm/errorlog#fatal-error-display), speech2 included. A base archive that fails with another code, missing included, ends it with Failed to open archive %s: %s; a speech2 or patch failing so is skipped.
The derivation is in the doc.
Callers 2
- FindArchiveRoot client
- OpenBaseArchive client
Callees 1
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.