sourcemm/CSmmAPI.cpp
changeset 64 ad98b9f2d80c
parent 26 084d848d60d6
child 65 27c4d32394a6
     1.1 --- a/sourcemm/CSmmAPI.cpp	Fri May 06 09:44:41 2005 +0000
     1.2 +++ b/sourcemm/CSmmAPI.cpp	Mon May 16 20:15:57 2005 +0000
     1.3 @@ -10,6 +10,7 @@
     1.4  
     1.5  #include "CSmmAPI.h"
     1.6  #include "sourcemm.h"
     1.7 +#include "concommands.h"
     1.8  
     1.9  /**
    1.10   * @brief Implementation of main API interface
    1.11 @@ -86,3 +87,14 @@
    1.12  {
    1.13  	return m_Res;
    1.14  }
    1.15 +
    1.16 +IConCommandBaseAccessor *CSmmAPI::GetCvarBaseAccessor()
    1.17 +{
    1.18 +	return static_cast<IConCommandBaseAccessor *>(&g_SMConVarAccessor);
    1.19 +}
    1.20 +
    1.21 +void CSmmAPI::UnregisterCvar(ConCommandBase *pCvar)
    1.22 +{
    1.23 +	g_SMConVarAccessor.Unregister(pCvar);
    1.24 +}
    1.25 +