benilla-re systems structs docs

SetTocProgress

function · unassigned · orchestration

Address
0x6ef160 · 37 bytes, up to 0x6ef184
Signature
void __fastcall (void *callback, void *context, uint32_t total)
Meaning
Stores the toc progress callback, its context word and the total, and zeroes the count of lines loaded
Confidence
verified, proof one
Finding
ui/framexml#running-a-toc

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 1

Callees 0

None by a direct call or jump.

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