benilla-re systems structs docs

CompareAddOnTitles

function · ui · orchestration

Address
0x51deb0 · 57 bytes, up to 0x51dee8
Signature
int __cdecl (const char **a, const char **b)
Meaning
Compares two add-on names by their titles, or names, ignoring case
Confidence
verified, proof two
Finding
ui/addons#the-order-lua-sees

Finding: The order Lua sees in ui: add-ons

Lua's add-on indexes run over a separate array of names, built when the realm server's add-on reply arrives: every record not hidden by that reply, sorted by its Title ignoring case, the folder name standing in for a missing title. The sort is the C runtime's qsort, which keeps no order between equal titles. Until the reply arrives the count is 0. An index is truncated, reduced by 1 and compared unsigned with the count.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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