benilla-re systems structs docs

LoadFrameXMLFile

function · ui · primitive

Address
0x6ede10 · 1095 bytes, up to 0x6ee256
Signature
int __fastcall (const char *path, void *md5, CStatus *status)
Meaning
Collapses .. in a path and runs a .lua file or loads an XML file and its top-level elements
Confidence
verified, proof one
Finding
ui/framexml#loading-one-file

Finding: Loading one file in ui: loading the interface from toc and XML files

0x6ede10(path, md5, status) first collapses ..: while the path holds a .. with a separator on both sides, it removes it with the directory before it; the first .. not so bounded stops the collapse. Then a path whose text from its last . is .lua, in any case, runs as a Lua file; anything else is read, hashed and parsed as XML, and its top-level elements are loaded. A Lua file runs as the chunk @path; a missing one reports Error loading %s. A compile error is reported and then passed to the error handler; a run-time error goes to the handler and is then reported.

The derivation is in the doc.

Callers 1

Callees 22

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