MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / RegisterConCommandBase

Method RegisterConCommandBase

core/sourcemod.cpp:750–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

SetValueMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected