benilla-re systems structs docs

QuestCacheRefuse

function · dbcache · orchestration

Address
0x563150 · 293 bytes, up to 0x563274
Signature
void __thiscall (void *this, uint32_t key)
Meaning
Runs a quest's callbacks with status 0, then unlinks and frees its node
Confidence
verified, proof two
Finding
dbcache/clones#quest-records-stored-and-refused

Finding: Quest records stored and refused in dbcache: per-cache code

The quest handler 0x555300 decodes a quest record on its stack, the quest id being its first dword. A record whose title (+0x9c) is empty is a refusal: 0x563150(id) finds the node, sets the dispatching byte +0x1909, runs its callbacks with status 0, clears the byte, unlinks the node and frees it, valid or pending; no node, no effect. A titled record goes to 0x562c80(record, id), which finds or makes the node, copies the record into node + 0x18, sets the valid byte +0x18f8 and the key +0x18f4, and then runs the callbacks with status 1 in list order and frees them. Each dispatched message stores one record, so its callbacks run before the next message's record is stored.

The derivation is in the doc.

Callers 1

Callees 1

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