benilla-re systems structs docs

OnItemPushRecordArrived

function · ui · orchestration

Address
0x491ee0 · 103 bytes, up to 0x491f46
Signature
void __fastcall (uint32_t key, uint32_t unused, void *data, uint8_t found)
Meaning
Replays a deferred item push with its saved arguments when the record arrives, then frees them
Confidence
verified, proof one
Finding
ui/gameui#the-item-pushs-record-wait

Finding: The item push's record wait in ui: game start-up and shutdown

CGGameUI::OnItemPush (0x491a60) first asks the item cache for the item's record without a callback. On a miss it copies its two register arguments and eight of its nine stack arguments, all but the item id, into a 0x28-byte block, asks again with the callback 0x491ee0 and that block, and returns having shown nothing. Every push that misses keeps its own callback. The callback, run with the answer, calls OnItemPush again with the saved arguments and the item id the cache passes, then frees the block; for a refusal it only frees the block, so that push never shows.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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