ConsoleCommandRegister
function · console · primitive
- Address
0x63f9e0· 352 bytes, up to0x63fb3f- 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
- ClientRegisterConsoleCommands client
- RegisterPlayerCommands unassigned
- ObjectAllocInitialize unassigned
- ClntObjMgrCreatePools objectlayer
- BindingsCreate ui
- CCamera::CCamera uicamera
- ClientServices::Initialize net
- FriendList::Initialize net
- RegisterGxRestartCommand console
- ConsoleScreenInitialize console
- CVar::Initialize cvar
- CVar::Register cvar
- RegisterBuiltinCommands console
- CWorld::Initialize terrain
- InitSky lighting
Callees 7
- CommandListSetLinkOffset console
- CommandLinkNode console
- CommandTableRehash console
- CommandBucketsResize console
- SStrCmpI storm
- SStrLen storm
- SStrHashHT storm
Calls and jumps by a bare address, from tables/calls.tsv.