benilla-re systems structs docs

LoadMacroFiles

function · ui · primitive

Address
0x4f0600 · 1129 bytes, up to 0x4f0a68
Signature
void __fastcall (int localFile, int cacheFile, uint32_t scope)
Meaning
Reads a scope's two macro files into records
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 0

None by a direct call or jump.

Callees 17

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