benilla-re systems structs docs

RefreshPortrait

function · ui · orchestration

Address
0x491a50 · 5 bytes, up to 0x491a54
Meaning
Jumps to 0x524e10
Confidence
verified, proof one
Finding
ui/portraits#marking-and-draining

Finding: Marking and draining in ui: unit portraits

0x524e10(&guid) marks a portrait dirty. A GUID already on the pending list (0xc0cdd0, head 0xc0cdd4) returns at once and keeps its place. Otherwise the mark links a new node at the head of the list, with the GUID at +8 and +0xc, and sets the dirty byte of the GUID cache entry, if one exists. Each frame 0x524cd0 walks the list from the head, so the newest mark drains first. A node whose unit is held but not ready (the latches below) stays, and every other node leaves the list and signals the unit events UNIT_PORTRAIT_UPDATE (0xb8) and UNIT_MODEL_CHANGED (0xb9) for the GUID. 0x524f60 returns at once for a unit whose GUID is on the pending list.

The derivation is in the doc.

Callers 10

Callees 1

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