benilla-re systems structs docs

s_tocLinesTotal

global · ui

Address
0xceea3c · 4 bytes, up to 0xceea3f
Type
uint32_t
Meaning
Holds the total of toc lines for the progress callback
Confidence
verified, proof two
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.