SignalPlayerInventoryChangedOnRecord
function · ui · orchestration
- Address
0x4c84f0· 37 bytes, up to0x4c8514- Signature
void __fastcall (uint32_t unused1, uint32_t unused2, void *data, uint8_t found)- Meaning
- Signals UNIT_INVENTORY_CHANGED with the token player on a nonzero status byte, nothing on 0
- Confidence
- verified, proof one
- Finding
- ui/inventoryverbs#ammo-record-callback
- Test
ui::ammo_record_callback_difftest
Finding: Ammo record callback in ui: inventory, container, bank and vendor getters
The ammo legs of GetInventoryItemTexture and GetInventoryItemQuality ask the item record cache for the
PLAYER_AMMO_ID entry (the texture getter after counting one in the inventory) with the callback 0x4c84f0, which signals UNIT_INVENTORY_CHANGED("player") when the
record arrives. A cached record returns at once and registers nothing. A missing one registers one callback per
call, with no duplicate check, so n calls before the arrival signal n times. A status of 0 signals nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.