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:
Scott Ehlert 2007-03-28 20:28:42 +00:00
parent fd1e3c4e97
commit 22dd1ba592
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -121,5 +121,5 @@ const char *SourceMod_Core::GetDate()
const char *SourceMod_Core::GetLogTag()
{
return "SRCMOD";
return "SM";
}