CategoryIndexOfOrdinal
function · glue · primitive
- Address
0x46edf0· 71 bytes, up to0x46ee36- Signature
uint32_t __fastcall (int32_t ordinal)- Meaning
- Returns the stored index of the ordinal-th non-empty realm category, or 0
- Confidence
- verified, proof one
- Finding
- glue/realms#category-ordinals
Finding: Category ordinals in glue: the realm list
Script category arguments are 1-based ordinals over the non-empty categories. 0x46edf0(k) returns
the stored index of the k-th (0-based) non-empty category, else 0, so an ordinal below 1 or past
the last reads category 0, empty or not. GetSelectedCategory returns the ordinal of the first
non-empty category whose index is at least 0x837e98, signed, so −1 reads the first; with none,
GetNumRealms(c)returns the count of category0x46edf0(c − 1), 0 past the array, and without a number the sum over all.GetRealmCategoriesreturns the non-empty categories' names in the client's locale,UNKNOWN(0x838044) without a row; with none, the first category's name alone, and with no categories it reads through null.
The derivation is in the doc.
Callers 4
- Script::GetNumRealms glue
- Script::GetRealmInfo glue
- Script::ChangeRealm glue
- Script::SetPreferredInfo glue
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.