diff -r ee7abd0da4dd -r ad98b9f2d80c sourcemm/CSmmAPI.cpp --- a/sourcemm/CSmmAPI.cpp Fri May 06 09:44:41 2005 +0000 +++ b/sourcemm/CSmmAPI.cpp Mon May 16 20:15:57 2005 +0000 @@ -10,6 +10,7 @@ #include "CSmmAPI.h" #include "sourcemm.h" +#include "concommands.h" /** * @brief Implementation of main API interface @@ -86,3 +87,14 @@ { return m_Res; } + +IConCommandBaseAccessor *CSmmAPI::GetCvarBaseAccessor() +{ + return static_cast(&g_SMConVarAccessor); +} + +void CSmmAPI::UnregisterCvar(ConCommandBase *pCvar) +{ + g_SMConVarAccessor.Unregister(pCvar); +} +