benilla-re systems structs docs

ConsoleCommandRegister

function · console · primitive

Address
0x63f9e0 · 352 bytes, up to 0x63fb3f
Signature
uint32_t __fastcall (const char *name, void *handler, uint32_t category, const char *help)
Meaning
Adds a command, refusing a name of 64 bytes or more or one already registered
Confidence
verified, proof one
Name from
the community database (idb)
Finding
console/commands#registering-and-removing

Finding: Registering and removing in console: commands

ConsoleCommandRegister (0x63f9e0; name in ecx, handler in edx, category and help on the stack) returns 0 for a name of 64 bytes or more or one already registered (case-blind), and otherwise adds the command and returns 1. ConsoleCommandUnregister (0x63fb40) finds a name, unlinks it from both lists and frees it. The first registration builds four buckets with mask 3; later ones grow the table when a bucket chain passes the limit of cvar/containers#growth.

The derivation is in the doc.

Callers 15

Callees 7

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