benilla-re systems structs docs

ReadBindingCache

function · ui · primitive

Address
0x4b6240 · 107 bytes, up to 0x4b62aa
Meaning
Reads a binding cache file into a stack buffer and parses it into the set of its kind
Confidence
verified, proof one
Finding
ui/keybindings#binding-files

Finding: Binding files in ui: key bindings

Bindings are read from three files. Set 0 is read from WTF\DefaultBindings.wtf; set 1 from bindings-cache.wtf under the account folder and set 2 from bindings-cache.wtf under the character folder, the account-data kinds 2 and 3. Each file is text with one line per key, bind <key> <command>, ended by a carriage return and line feed. Loading empties the set, then takes each line whose first five characters are bind (any case), reads the key up to the next space (31 characters at most) and the rest of the line as the command, and stores them through the same routine as SetBinding, so a key the validator refuses is dropped. A line is cut to 127 characters.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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