1.1 --- a/sourcemm/CSmmAPI.h Fri May 27 21:39:30 2005 +0000
1.2 +++ b/sourcemm/CSmmAPI.h Fri Jun 24 22:26:19 2005 +0000
1.3 @@ -18,11 +18,15 @@
1.4
1.5 #include "ISmmAPI.h"
1.6
1.7 +typedef void (*CONPRINTF_FUNC)(const char *, ...);
1.8 +
1.9 namespace SourceMM
1.10 {
1.11 class CSmmAPI : public ISmmAPI
1.12 {
1.13 public:
1.14 + CSmmAPI::CSmmAPI();
1.15 + public:
1.16 ISmmPluginManager *PluginManager();
1.17 SourceHook::ISourceHook *SourceHook();
1.18 void LogMsg(ISmmPlugin *pl, const char *msg, ...);
1.19 @@ -37,11 +41,20 @@
1.20 IConCommandBaseAccessor *GetCvarBaseAccessor();
1.21 bool RegisterConCmdBase(ISmmPlugin *plugin, ConCommandBase *pCommand);
1.22 void UnregisterConCmdBase(ISmmPlugin *plugin, ConCommandBase *pCommand);
1.23 + void ConPrint(const char *fmt);
1.24 + void ConPrintf(const char *fmt, ...);
1.25 + bool CacheSuccessful();
1.26 + public:
1.27 + bool CacheCmds();
1.28 private:
1.29 META_RES m_Res;
1.30 + CONPRINTF_FUNC m_ConPrintf;
1.31 + bool m_Cache;
1.32 };
1.33 };
1.34
1.35 extern SourceMM::CSmmAPI g_SmmAPI;
1.36
1.37 +#define CONMSG g_SmmAPI.ConPrintf
1.38 +
1.39 #endif //_INCLUDE_CSMM_API_H