benilla-re systems structs docs

CVar::SetReadOnly

function · cvar · primitive

Address
0x63e030 · 33 bytes, up to 0x63e050
Signature
void __thiscall (CVar *this, uint8_t on)
Meaning
Sets or clears the read-only bit of a record
Confidence
verified, proof two
Finding
cvar/registry#flags-and-categories

Finding: Flags and categories in cvar: registry

Bit 0 of the flags is set on every record Register creates: the config file keeps only records with it, and so every changed setting is saved. Bit 1 latches the value: a set is kept in +0x38 until Update applies it. Bit 2 makes the record read-only. Bit 31 marks the record as visible to scripts, and Register sets it when its script-hidden byte is 0. The category is an index into the table 0x8653a0 of nine 0x18-byte entries, an id then a name: 0 debug, 1 graphics, 2 console, 3 combat, 4 game, 5 default, 6 net, 7 sound, 8 gm.

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.