SpellRecRead
function · dbc · primitive
- Address
0x583750· 5353 bytes, up to0x584c38- Signature
bool __thiscall (void *this, void *file, const char *stringBase)- Meaning
- Reads one SpellRec in 118 reads and rebases its 32 string offsets once every read succeeds
- Confidence
- verified, proof two
- Finding
- dbc#six-readers-column-by-column
- Test
dbc::spell_read_difftest
Finding: Six readers column by column in dbc
Each of these Reads makes every one of its column reads, a failed one included, before it tests
any: the result is false when any read returned 0, and then no string column is stored. The scalar
columns land in the record as they are read, so a failed record keeps what its reads wrote. A
string column holds stringBase + offset in 32 bits, or the empty string 0x882748 in every
string column when stringBase is null.
| reader | record | reads, in order |
|---|---|---|
CharHairGeosets 0x5753b0 | 24 | six dwords |
CharSections 0x575540 | 40 | six dwords, three strings at +0x18 to +0x20, a dword |
CharacterFacialHairStyles 0x575a80 | 36 | six dwords, 12 bytes at +0x18 |
WeaponImpactSounds 0x587450 | 92 | three dwords, 40 bytes at +0xc, 40 at +0x34 |
LightParams 0x589030 | 36 | nine dwords |
Spell 0x583750 | 692 | 118 reads; four localized strings at +0x1e0, +0x204, +0x228, +0x24c |
The derivation is in the doc.
Callers 1
- SpellLoad dbc
Callees 2
- ConsoleWrite console
- SFile::Read storm
Calls and jumps by a bare address, from tables/calls.tsv.