benilla-re systems structs docs

CanLoadAddOn

function · ui · primitive

Address
0x51e780 · 431 bytes, up to 0x51e92e
Meaning
Answers whether an add-on may load, with a reason code and a dependency reason code
Confidence
verified, proof two
Finding
ui/addons#whether-an-add-on-may-load

Finding: Whether an add-on may load in ui: add-ons

The load check answers false with a reason: MISSING for an unknown name; DISABLED when the character's enable state is 0; BANNED; CORRUPT; INTERFACE_VERSION when Interface is not 11200 and the CVar checkAddonVersion (default 1) is nonzero; a dependency's own failure, as a second reason shown with DEP_; and, when called for a load on demand, NOT_DEMAND_LOADED unless the add-on declares LoadOnDemand. An add-on already being checked, through a dependency cycle, passes. The reason INSECURE exists but the check never gives it.

The derivation is in the doc.

Callers 5

Callees 6

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