CreatureCacheSave
function · dbcache · primitive
- Address
0x5566d0· 633 bytes, up to0x556948- Signature
void __thiscall (void *this)- Meaning
- Writes the Creature cache to its file as header, entries and a zero pair, then empties the cache; runs at exit
- Confidence
- verified, proof two
- Finding
- dbcache/overview#the-wdb-file
Finding: The .wdb file in dbcache: overview
A file is a 20-byte header, then the records. The header is five dwords: the tag, the build 0x16f3, the locale tag [0xc2a2a4],
the record size of the cache's type and the version. The path is WDB/<file name>, the directory made first (0x42a960).
The body is a sequence of entries {key, size, record}, the key a dword, size the length of the encoded record, and ends with two zero
dwords.
The derivation is in the doc.
Callers 1
- InitCreatureCacheExit dbcache
Callees 17
- 0x401d20 client
- CDataStore::SetUInt32 base
- CDataStore::PutUInt32 base
- CDataStore::GetDataInSitu base
- OsCreateFile unassigned
- OsCloseFile unassigned
- OsWriteFile unassigned
- OsCreateDirectory os
- DebugPrintStub unassigned
- 0x4c9a80 ui
- 0x556470 dbcache
- 0x556500 dbcache
- 0x556670 dbcache
- 0x556950 dbcache
- 0x556a50 dbcache
- SStrPrintf storm
- CreatureStatsWrite dbcache
Calls and jumps by a bare address, from tables/calls.tsv.