GetLootRowIcon
function · ui · primitive
- Address
0x4c2460· 230 bytes, up to0x4c2545- Signature
char * __fastcall (int slot)- Meaning
- Returns the icon path of a loot slot or of the coin row, or null for guard failures
- Confidence
- verified, proof one
- Finding
- ui/loot#counting-and-guards
Finding: Counting and guards in ui: the loot window
Every accessor of the window except the count (0x4c22a0, 0x4c22e0, 0x4c2320, 0x4c2360, 0x4c23a0,
0x4c2440, 0x4c2460, 0x4c2550, 0x4c2670) takes a 0-based slot and applies the same guards: nothing is open, so the
answer is empty; with money not zero, slot 0 is the coin row and every other slot drops by one; a position of 16 or
more (unsigned) is empty. 0x4c2260, the count, is the position of the last row with an entry plus one, plus one
when the money cell is nonzero, so a taken coin row (-1) still counts. The coin row has an entry only while the
money is above 0.
The derivation is in the doc.
Callers 1
Callees 4
- ClientDBStringLookup unassigned
- SStrPack storm
- SStrPrintf storm
- FormatCoinIconPath unassigned
Calls and jumps by a bare address, from tables/calls.tsv.