benilla-re systems structs docs

SelectCharSelectRecord

function · glue · primitive

Address
0x472740 · 53 bytes, up to 0x472774
Signature
void __fastcall (int32_t index)
Meaning
Stores an index clamped to the roster, else 0, builds its model and fires UPDATE_SELECTED_CHARACTER with it plus 1
Confidence
verified, proof one
Finding
glue/selectscene#selection-callers

Finding: Selection callers in glue: the select scene

SetSelectedCharacter (0x472740) compares nothing with the previous selection: every call clamps, stores and builds. It has four callers, all calls. Two pass −1 after the roster count is zeroed, so 0x472950 leaves at its count test, above the facing reset. The other two, the restore of lastCharacterIndex and the Lua SelectCharacter, reach the reset. The shipped GlueXML calls the binding from one wrapper only, and its row click and double click skip the call when the row is the selected one, so a click on that row keeps the dragged facing.

The derivation is in the doc.

Callers 3

Callees 2

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