CreatureCacheLoad
function · dbcache · orchestration
- Address
0x5572b0· 1055 bytes, up to0x5576ce- 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
- DBCacheLoadAll dbcache
Callees 14
- __alloca_probe crt
- CDataStore::GetInt32 base
- CDataStore::GetUInt32_2 base
- OsCreateFile unassigned
- OsCloseFile unassigned
- 0x42a520 unassigned
- OsCreateDirectory os
- 0x556670 dbcache
- 0x556a50 dbcache
- 0x56d190 dbcache
- SMemAlloc storm
- SMemFree storm
- SStrPrintf storm
- CreatureStatsRead dbcache
Calls and jumps by a bare address, from tables/calls.tsv.