CreatureStatsWrite
function · dbcache · primitive
- Address
0x7c8080· 160 bytes, up to0x7c811f- Signature
void __thiscall (void *this, CDataStore *stream)- Meaning
- Writes a creature record: four names, a subname, seven dwords and two flag bytes
- 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 2
- CreatureCacheSave dbcache
- CreatureCacheWriteFile dbcache
Callees 3
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- CDataStore::PutCString base
Calls and jumps by a bare address, from tables/calls.tsv.