benilla-re systems structs docs

ArchiveLookup

function · storm · orchestration

Address
0x6549a0 · 1057 bytes, up to 0x654dc0
Signature
int __fastcall (uint32_t arg1, uint32_t arg2, uint32_t flags, void *out1, void *out2, void *out3, char *path)
Meaning
Walks the archive list and probes each hash table; returns 1 hit, 2 loose disk file, 3 deleted, 0 miss
Confidence
verified, proof two
Finding
storm/mount#name-resolution

Finding: Name resolution in storm: mounting the archives

0x6549a0 walks the list from its head. In each archive it probes the hash table (format.md#hash-lookup); a hit ends the walk, and only a miss goes on to the next archive. So a name resolves to the highest priority archive that has it: every patch beats every base archive, a patch that sorts after another beats it, and speech2.MPQ and its children beat the patches. A speech2 child probes its parent patch for the name prefixed speech2\. A hit on a block whose flags carry 0x02000000 ends the walk with result 3 and error 2: the file is not found, and a lower archive's copy is not used.

The derivation is in the doc.

Callers 3

Callees 9

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