1.1 --- a/public/sample_ext/sdk/smsdk_config.h Sat Jun 16 22:10:22 2007 +0000
1.2 +++ b/public/sample_ext/sdk/smsdk_config.h Sun Jun 17 01:38:28 2007 +0000
1.3 @@ -50,6 +50,7 @@
1.4 //#define SMEXT_ENABLE_HANDLESYS
1.5 //#define SMEXT_ENABLE_PLAYERHELPERS
1.6 //#define SMEXT_ENABLE_DBMANAGER
1.7 -#define SMEXT_ENABLE_GAMECONF
1.8 +//#define SMEXT_ENABLE_GAMECONF
1.9 +//#define SMEXT_ENABLE_MEMUTILS
1.10
1.11 #endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
2.1 --- a/public/sample_ext/sdk/smsdk_ext.cpp Sat Jun 16 22:10:22 2007 +0000
2.2 +++ b/public/sample_ext/sdk/smsdk_ext.cpp Sun Jun 17 01:38:28 2007 +0000
2.3 @@ -48,6 +48,9 @@
2.4 #if defined SMEXT_ENABLE_GAMECONF
2.5 IGameConfigManager *gameconfs = NULL; /**< Game config manager */
2.6 #endif //SMEXT_ENABLE_DBMANAGER
2.7 +#if defined SMEXT_ENABLE_MEMUTILS
2.8 +IMemoryUtils *memutils = NULL;
2.9 +#endif
2.10
2.11 /** Exports the main interface */
2.12 PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
2.13 @@ -100,6 +103,9 @@
2.14 #if defined SMEXT_ENABLE_GAMECONF
2.15 SM_GET_IFACE(GAMECONFIG, gameconfs);
2.16 #endif
2.17 +#if defined SMEXT_ENABLE_MEMUTILS
2.18 + SM_GET_IFACE(MEMORYUTILS, memutils);
2.19 +#endif
2.20
2.21 if (SDK_OnLoad(error, maxlength, late))
2.22 {
3.1 --- a/public/sample_ext/sdk/smsdk_ext.h Sat Jun 16 22:10:22 2007 +0000
3.2 +++ b/public/sample_ext/sdk/smsdk_ext.h Sun Jun 17 01:38:28 2007 +0000
3.3 @@ -42,6 +42,9 @@
3.4 #if defined SMEXT_ENABLE_GAMECONF
3.5 #include <IGameConfigs.h>
3.6 #endif
3.7 +#if defined SMEXT_ENABLE_MEMUTILS
3.8 +#include <IMemoryUtils.h>
3.9 +#endif
3.10
3.11 #if defined SMEXT_CONF_METAMOD
3.12 #include <ISmmPlugin.h>
3.13 @@ -207,6 +210,9 @@
3.14 #if defined SMEXT_ENABLE_GAMECONF
3.15 extern IGameConfigManager *gameconfs;
3.16 #endif //SMEXT_ENABLE_DBMANAGER
3.17 +#if defined SMEXT_ENABLE_MEMUTILS
3.18 +extern IMemoryUtils *memutils;
3.19 +#endif
3.20
3.21 #if defined SMEXT_CONF_METAMOD
3.22 PLUGIN_GLOBALVARS();