benilla-re systems structs docs

ConsoleCommandComplete

function · console · primitive

Address
0x63fc60 · 326 bytes, up to 0x63fda5
Signature
uint32_t __fastcall (const char *prefix, const char **state, uint32_t reverse)
Meaning
Finds the next command whose name begins with the prefix and stores its name in the state
Confidence
verified, proof one
Name from
the community database (idb)
Finding
console/commands#completion

Finding: Completion in console: commands

0x63fc60 completes a command name. It takes the typed prefix in ecx, a state word in edx that holds the name last offered (0 at first) and a direction on the stack. With state 0 it starts at the first registered command; otherwise it finds the command named by the state and steps to the next, or to the previous when the direction is nonzero. From there it walks the list in that direction to the first name that begins with the prefix, case-blind, stores that name in the state and returns 1. It returns 0 at the end of the list or when the state's name names no registered command; it does not wrap.

The derivation is in the doc.

Callers 1

Callees 4

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