benilla-re systems structs docs

IndexLooseFolder

function · storm · orchestration

Address
0x646910 · 1143 bytes, up to 0x646d86
Signature
void __fastcall (const char *root, const char *prefix, void *listing)
Meaning
Adds a folder's files to the loose-file index keyed below the root, walking subfolders but a Data prefix
Confidence
verified, proof two
Finding
storm/mount#loose-file-index
Test
storm::resolve_matches_index, storm::index_falls_back_to_dot

Finding: Loose-file index in storm: mounting the archives

0x646ea0 walks the base path 0xc52418, or . when it does not list, then that string with 0xc520c8 (Data\) appended (.Data\ in the fallback, so Data is then not walked), and marks the index built. 0x646910 skips ., .. and folders whose path below the walked folder is a prefix of Data\ (case-sensitive), walks the others, and enters every regular file: the key is its path below the walked folder, the value its full path. A last extension .bz or .MPQ (any case) is cut from the key, as kind 1 or 2; any other file is kind 0. A key's first entry stays: the base folder's before Data\'s, then listing order. A third folder, 0xc52310, stays empty.

The derivation is in the doc.

Callers 1

Callees 19

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