benilla-re systems structs docs

Script::LoadAddOn

function · ui · orchestration

Address
0x48e980 · 487 bytes, up to 0x48eb66
Signature
int __fastcall (lua_State *L)
Meaning
Loads an add-on on demand and returns 1, or nil and the reason
Confidence
verified, proof two
Finding
ui/addons#the-in-game-add-on-functions

Finding: The in-game add-on functions in ui: add-ons

Each takes an index or a name. A number or numeric string is an index, out of range raising AddOn index must be in the range of 1 to %d; another string is a name, ignoring case, which may match nothing; anything else raises the function's usage. GetAddOnInfo answers seven values: the name; the title and notes or nil; enabled for the current character as 1 or nil; loadable, 1 when loaded, else the on-demand check as 1 or nil; its reason or nil; and SECURE, INSECURE or BANNED. LoadAddOn loads on demand and answers 1, nil or nil and the reason, UNKNOWN_ERROR when the check has none. IsAddOnLoaded and IsAddOnLoadOnDemand answer 1 or nil, GetNumAddOns the count.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 18

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