benilla-re systems structs docs

RegisterBagWatchers

function · ui · orchestration

Address
0x4f8cc0 · 235 bytes, up to 0x4f8daa
Signature
void __cdecl ()
Meaning
Registers the bag, backpack and keyring slot watchers on the local player and rescans the bags
Confidence
verified, proof one
Finding
ui/bags#bag-slot-watchers

Finding: Bag slot watchers in ui: bags and bag slots

At construction of the local player 0x4f8cc0 registers 58 watchers of 8 bytes on the player's inventory GUIDs, in four runs, each offset n meaning flat slot (n - 0x4a8) / 8: bytes 0x540 to 0x558 (slots 19 to 22) and 0x6a0 to 0x6c8 (63 to 68) call 0x4f8ec0; 0x560 to 0x5d8 (23 to 38) and 0x730 to 0x828 (81 to 112) call 0x4f8db0. The bank items (39 to 62) and the buy-back slots (69 to 80) get none from this file. 0x4f8f90 removes them, and the content watchers of every cached bag. The registrations end with the zeroing of the ten-entry bag GUID cache at 0xbdd060 and a call to 0x4f91a0.

The derivation is in the doc.

Callers 1

Callees 3

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