benilla-re systems structs docs

CreatureCacheLoad

function · dbcache · orchestration

Address
0x5572b0 · 1055 bytes, up to 0x5576ce
Signature
void __thiscall (void *this)
Meaning
Loads the creature cache from its file when it persists, keeping nothing on a header mismatch or short read
Confidence
verified, proof two
Finding
dbcache/overview#loading-a-wdb-file

Finding: Loading a .wdb file in dbcache: overview

The load returns at once for a cache whose persist byte is 0. Otherwise it reads the 20-byte header and compares the tag, the build, the locale, the record size and the version with its own. Any difference closes the file and leaves the cache empty; the file stays on disk. The body is read entry by entry until a key of 0, each record decoded by the type's reader into a node found or created for the key, with the valid byte +0x50 set. A short read clears the nodes already loaded.

The derivation is in the doc.

Callers 1

Callees 14

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