benilla-re systems structs docs

CountTocLines

function · ui · primitive

Address
0x6edb50 · 60 bytes, up to 0x6edb8b
Signature
int __fastcall (const char *text)
Meaning
Counts the lines of a toc text that do not begin with #
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.

Callers 2

Callees 0

None by a direct call or jump.

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