benilla-re systems structs docs

GetHistoryEntry

function · console · primitive

Address
0x63f9c0 · 23 bytes, up to 0x63f9d6
Signature
char * __fastcall (uint32_t back)
Meaning
Returns the address of the history line a number of lines back from the newest
Confidence
verified, proof one
Name from
the community database (idb)
Finding
console/commands#history

Finding: History in console: commands

The history is a ring of 32 lines of 0x50 bytes at 0xc4ee48 and a write index 0xc518a0. Adding a line copies at most 0x50 bytes into the slot at the index and advances it. Entry i counts back from the newest: ring + 0x50·((index − i − 1) & 0x1f). The input line walks it with Up and Down (screen#input-line).

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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