| 748 | } |
| 749 | |
| 750 | bool RegisterConCommandBase(ConCommandBase *pCommand) override |
| 751 | { |
| 752 | META_REGCVAR(pCommand); |
| 753 | |
| 754 | // Override values of convars created by SourceMod convar manager if |
| 755 | // specified on command line. |
| 756 | const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName()); |
| 757 | if (cmdLineValue && !pCommand->IsCommand()) |
| 758 | static_cast<ConVar *>(pCommand)->SetValue(cmdLineValue); |
| 759 | |
| 760 | return true; |
| 761 | } |
| 762 | } sConVarRegistrar; |