benilla-re systems structs docs

Script::GetAddOnEnableState

function · glue · orchestration

Address
0x46d6f0 · 188 bytes, up to 0x46d7ab
Signature
int __fastcall (lua_State *L)
Meaning
Returns an add-on's enable state for a character or nil, by 1-based index
Confidence
verified, proof one
Name from
the community database (idb)
Finding
glue/script#add-on-list

Finding: Add-on list in glue: the script functions

An add-on index argument must be a number, else the function's usage error; __ftol of it minus 1 selects from the list of add-on names, and anything outside 1 to the count, compared unsigned, raises AddOn index must be in the range of 1 to %d with the count. A character argument must be a string, a number or nil, nil meaning none; absent is the usage error. The functions:

functionargumentsreturns, effect
GetNumAddOns 0x46d420nonethe count
GetAddOnInfo 0x46d460index8: name; title, notes and URL, each a string or nil; loadable flag; reason or nil; security; a flag
GetAddOnDependencies 0x46d650indexone string per dependency, none for none
GetAddOnEnableState 0x46d6f0character, indexthe state the add-on code returns, a number
EnableAddOn, DisableAddOn 0x46d7b0, 0x46d8a0character, indexsets state 2 or 0
EnableAllAddOns, DisableAllAddOns 0x46d850, 0x46d940character, uncheckedsets 2 or 0 for every index
SaveAddOns, ResetAddOns 0x46d990, 0x46d9a0nonesaves; reloads all, null passed
IsAddonVersionCheckEnabled 0x46d9b0nonethe flag checkAddonVersion ≠ 0
SetAddonVersionCheck 0x46d9e0flag, default 1sets checkAddonVersion to "1" or "0"

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

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