1.1 --- a/core/sourcemm_api.cpp Mon Jul 23 17:38:06 2007 +0000
1.2 +++ b/core/sourcemm_api.cpp Mon Jul 23 18:30:02 2007 +0000
1.3 @@ -17,6 +17,7 @@
1.4 #include "sm_version.h"
1.5 #include "sourcemod.h"
1.6 #include "Logger.h"
1.7 +#include "ConVarManager.h"
1.8
1.9 SourceMod_Core g_SourceMod_Core;
1.10 IVEngineServer *engine = NULL;
1.11 @@ -148,3 +149,15 @@
1.12 pBase = pBase->m_pGlobalClassNext;
1.13 }
1.14 }
1.15 +
1.16 +#if PLAPI_VERSION >= 12
1.17 +void SourceMod_Core::OnUnlinkConCommandBase(PluginId id, ConCommandBase *pCommand)
1.18 +{
1.19 + g_ConVarManager.OnUnlinkConCommandBase(id, pCommand);
1.20 +}
1.21 +#else
1.22 +void SourceMod_Core::OnPluginUnload(PluginId id)
1.23 +{
1.24 + g_ConVarManager.OnMetamodPluginUnloaded(id);
1.25 +}
1.26 +#endif