Couple of quick things...
- Changed SourceMod logtag from SRCMOD to SM - ConVars dynamically created by convar manager now can properly be set on srcds command line --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40663
This commit is contained in:
parent
fd1e3c4e97
commit
22dd1ba592
@ -59,6 +59,13 @@ bool RootConsoleMenu::RegisterConCommandBase(ConCommandBase *pCommand)
|
||||
{
|
||||
META_REGCVAR(pCommand);
|
||||
|
||||
/* Override values of convars created by SourceMod convar manager if specified on command line */
|
||||
const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName());
|
||||
if (cmdLineValue && !pCommand->IsCommand())
|
||||
{
|
||||
static_cast<ConVar *>(pCommand)->SetValue(cmdLineValue);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -121,5 +121,5 @@ const char *SourceMod_Core::GetDate()
|
||||
|
||||
const char *SourceMod_Core::GetLogTag()
|
||||
{
|
||||
return "SRCMOD";
|
||||
return "SM";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user