benilla-re systems structs docs

RegisterMacroFileReaders

function · ui · orchestration

Address
0x4f0a70 · 35 bytes, up to 0x4f0a92
Signature
void __cdecl (void)
Meaning
Registers the macro file reader for the account and character scopes
Confidence
verified, proof one
Finding
ui/macros#loading-macro-files

Finding: Loading macro files in ui: macros

The reader takes a header only as MACRO in any case, a nonzero id and a name. It skips a scope that already has 18 macros, adds the scope's base to an id below it, skips an id that exists, and ends a block at a line END (any case). Each body line is followed by \n, the last too, so a loaded body ends in \n; the body is cut to 256 characters. A loaded macro always has the local flag clear, so a macro read from macros-local.txt is written back to macros-cache.txt. The load ends by rebuilding the order and deriving every bound spell.

The derivation is in the doc.

Callers 1

Callees 1

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