| 459 | } |
| 460 | |
| 461 | FConsoleCommand::FConsoleCommand (const char *name, CCmdRun runFunc) |
| 462 | : m_RunFunc (runFunc) |
| 463 | { |
| 464 | int ag = strcmp (name, "kill"); |
| 465 | if (ag == 0) |
| 466 | ag=0; |
| 467 | m_Name = name; |
| 468 | |
| 469 | if (!AddToHash (Commands)) |
| 470 | Printf ("Adding CCMD %s twice.\n", name); |
| 471 | else |
| 472 | C_AddTabCommand (name); |
| 473 | } |
| 474 | |
| 475 | FConsoleCommand::~FConsoleCommand () |
| 476 | { |
nothing calls this directly
no test coverage detected