MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / RemoveCommand

Method RemoveCommand

neo/framework/CmdSystem.cpp:397–410  ·  view source on GitHub ↗

============ idCmdSystemLocal::RemoveCommand ============ */

Source from the content-addressed store, hash-verified

395============
396*/
397void idCmdSystemLocal::RemoveCommand( const char *cmdName ) {
398 commandDef_t *cmd, **last;
399
400 for ( last = &commands, cmd = *last; cmd; cmd = *last ) {
401 if ( idStr::Cmp( cmdName, cmd->name ) == 0 ) {
402 *last = cmd->next;
403 Mem_Free( cmd->name );
404 Mem_Free( cmd->description );
405 delete cmd;
406 return;
407 }
408 last = &cmd->next;
409 }
410}
411
412/*
413============

Callers 2

ShutdownMethod · 0.80
ShutdownMethod · 0.80

Calls 1

Mem_FreeFunction · 0.85

Tested by

no test coverage detected