benilla-re systems structs docs

WriteBindingSetLines

function · ui · orchestration

Address
0x4b6520 · 144 bytes, up to 0x4b65af
Signature
void __fastcall (void *arg1, uint32_t unused, uint32_t set, void *handle)
Meaning
Writes a bind line, key then command, for every key of a binding set to the file handle
Confidence
verified, proof one
Finding
ui/keybindings#writing-binding-files

Finding: Writing binding files in ui: key bindings

The files are written when the interface shuts down, at game shutdown or from a flag-gated site in the frame update. The dirty mask at +0xd4 of the manager says what changed: bit 1 (set 1) writes both files, bit 2 (set 2) the character file alone. Each file is opened for writing, which empties it, and the writer puts bind <key> <command> plus carriage return and line feed for every key of the set, in the order of the set's key list. The account file gets set 1. The character file gets set 2 only when the current set is 2, so after the account set is saved it is left empty. A section marked pending is skipped.

The derivation is in the doc.

Callers 1

Callees 3

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