Script::GetRealmCategories
function · glue · primitive
- Address
0x46f1f0· 197 bytes, up to0x46f2b4- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the localized names of the non-empty categories, or the first category's name
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 2
- lua_checkstack lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.