1.1 --- a/sample_mm/sample_mm.h Sun Feb 17 22:03:10 2008 +0000
1.2 +++ b/sample_mm/sample_mm.h Sun Feb 17 22:56:20 2008 +0000
1.3 @@ -23,6 +23,10 @@
1.4 #include <sh_vector.h>
1.5 #include "engine_wrappers.h"
1.6
1.7 +#if defined WIN32 && !defined snprintf
1.8 +#define snprintf _snprintf
1.9 +#endif
1.10 +
1.11 class StubPlugin : public ISmmPlugin, public IMetamodListener
1.12 {
1.13 public:
1.14 @@ -53,9 +57,9 @@
1.15 const char *pszAddress,
1.16 char *reject,
1.17 int maxrejectlen);
1.18 -#if defined ORANGEBOX_BUILD
1.19 +#if defined ENGINE_ORANGEBOX
1.20 void Hook_ClientCommand(edict_t *pEntity, const CCommand &args);
1.21 -#else
1.22 +#elif defined ENGINE_ORIGINAL
1.23 void Hook_ClientCommand(edict_t *pEntity);
1.24 #endif
1.25 public:
1.26 @@ -68,7 +72,9 @@
1.27 const char *GetDate();
1.28 const char *GetLogTag();
1.29 private:
1.30 - SourceHook::CVector<int> m_hooks;
1.31 +#if defined ENGINE_ORIGINAL
1.32 + SourceHook::CallClass<IVEngineServer> *m_EngineCC;
1.33 +#endif
1.34 };
1.35
1.36 extern StubPlugin g_StubPlugin;