benilla-re systems structs docs

CreatureCacheSave

function · dbcache · primitive

Address
0x5566d0 · 633 bytes, up to 0x556948
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

Callees 17

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