LoadMacroFiles
function · ui · primitive
- Address
0x4f0600· 1129 bytes, up to0x4f0a68- 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
- __alloca_probe crt
- 0x42a520 unassigned
- 0x42a670 unassigned
- DeriveAllBoundSpells ui
- RebuildMacroOrder ui
- SetMacroBody ui
- Unlink4f1f00 ui
- LinkOrEnd4f2430 ui
- RehashTable4f2450 ui
- InitEndLink4f2720 ui
- ResizeBuckets4f2730 ui
- SStrCmpI storm
- SStrCopy storm
- SStrLen storm
- SStrPack storm
- SStrToInt storm
- SStrTokenize storm
Calls and jumps by a bare address, from tables/calls.tsv.