benilla-re systems structs docs

LoadAddOnByName

function · ui · primitive

Address
0x51f240 · 957 bytes, up to 0x51f5fc
Signature
int __fastcall (const char *name, char demand, CStatus *status)
Meaning
Loads an add-on with its dependencies, files, bindings and saved variables, then signals ADDON_LOADED
Confidence
verified, proof two
Finding
ui/addons#loading-an-add-on

Finding: Loading an add-on in ui: add-ons

0x51f240(name, demand, status) answers true at once for a loaded add-on. Otherwise, when the load check passes, it marks the add-on loaded, loads its optional dependencies, then its required ones, unmarking it and failing if one fails; runs its toc's files and its folder's Bindings.xml under its context word (its name when insecure, 0 when secure) with an MD5 over them; runs its account and then per-character saved variables; for a secure add-on quits with code 10 unless the MD5 matches its digest; signals ADDON_LOADED with its name; and then loads each add-on that declared LoadWith it.

The derivation is in the doc.

Callers 2

Callees 19

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