LoadTocFile
function · ui · primitive
- Address
0x6edb90· 627 bytes, up to0x6ede02- Signature
int __fastcall (const char *toc, void *md5, CStatus *status)- Meaning
- Runs each line of a toc not beginning with # as a file under the toc's directory, hashing the toc
- Confidence
- verified, proof two
- Finding
- ui/framexml#running-a-toc
- Test
ui::glue_geom_6edb90_progress_ratio
Finding: Running a toc in ui: loading the interface from toc and XML files
0x6edb90(toc, md5, status) reads the toc whole, adds its bytes to the MD5, skips a leading EF BB BF, and splits the text at CR and LF, skipping empty lines and keeping at most 1,023 bytes of a
line. Each line that does not begin with # is appended to the toc's directory, up to and including
its last backslash, stripped of trailing spaces (not tabs), and loaded with 0x6ede10. The result
of each load is ignored. After each loaded line, while a callback is set and the lines loaded are
below the total, the callback runs with their ratio. It answers 0 only when the toc
does not open; then Couldn't open %s is reported.
The derivation is in the doc.
Callers 3
- CGlueMgr::Resume glue
- CGGameUI::Initialize ui
- LoadAddOnByName ui
Callees 12
- CStatus::~CStatus client
- CStatus::Prepend client
- SFile::Load storm
- SFile::Unload storm
- SStrChrR storm
- SStrCopy storm
- SStrLen storm
- SStrPack storm
- SStrTokenize storm
- MD5Update storm
- GetFrameXMLDebug ui
- LoadFrameXMLFile ui
Calls and jumps by a bare address, from tables/calls.tsv.