benilla-re systems structs docs

MarkPortraitDirty

function · ui · orchestration

Address
0x524e10 · 321 bytes, up to 0x524f50
Meaning
Queues a GUID for the portrait events and marks its cached portrait dirty
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 3

Callees 3

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