LoadExhaustionTable
function · ui · primitive
- Address
0x544da0· 570 bytes, up to0x544fd9- Signature
void __thiscall (void *this)- Meaning
- Loads Exhaustion.dbc, checking 15 fields and 60 bytes a record, and indexes the rows by id
- Confidence
- verified, proof one
- Finding
- ui/rested#exhaustion-table
Finding: Exhaustion table in ui: rested experience functions
Exhaustion.dbc is loaded at startup. The loader accepts only 15 fields and 60 bytes a record; any other layout is a fatal
error. It builds an index by row id: the cell index[row.id] holds the row. The store keeps the index at 0xc0dd78 and the
highest id at 0xc0dd7c, -1 until loaded. A row is the id (+0), a threshold (+4), a factor, a float (+8), two floats
that no Lua function reads (+0xc, +0x10) and the name, one pointer per locale from +0x14.
The derivation is in the doc.
Callers 1
- StaticDBLoadAll dbc
Callees 9
- ExhaustionGetFileName dbc
- ExhaustionRecConstruct dbc
- ExhaustionRecRead dbc
- SMemAlloc storm
- SFile::Open storm
- SFile::Read storm
- SFile::Close storm
- SErrDisplayAppFatal2 storm
- SErrDisplayAppFatal storm
Calls and jumps by a bare address, from tables/calls.tsv.