benilla-re systems structs docs

CSimpleEditBox::SetHistoryLineCount

function · ui · primitive

Address
0x77cd90 · 385 bytes, up to 0x77cf10
Signature
void __thiscall (CSimpleEditBox *this, uint32_t count)
Meaning
Resizes the history array to a count of records, freeing dropped strings, and clamps the position
Confidence
verified, proof one
Finding
ui/editboxmembers#history-array

Finding: History array in ui: edit box members

SetHistoryLines(n) sets the line limit through 0x77cd90(n). A different count than the stored one frees the records the new size drops (the string of each, through 0x77cf20), reallocates the array to n records of 8 bytes, zero-fills the new ones and stores the count. A reallocation that fails allocates a new array and copies the smaller count of records, duplicating each string. A count of 0 frees every string and the array and zeroes capacity, count and data. It then stores n at +0x388 and clamps the position +0x38c to n − 1 (0 for none).

The derivation is in the doc.

Callers 3

Callees 6

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