diff --git a/public/sample_ext/sdk/smsdk_config.h b/public/sample_ext/sdk/smsdk_config.h index 8b97b530..99429f36 100644 --- a/public/sample_ext/sdk/smsdk_config.h +++ b/public/sample_ext/sdk/smsdk_config.h @@ -50,6 +50,7 @@ //#define SMEXT_ENABLE_HANDLESYS //#define SMEXT_ENABLE_PLAYERHELPERS //#define SMEXT_ENABLE_DBMANAGER -#define SMEXT_ENABLE_GAMECONF +//#define SMEXT_ENABLE_GAMECONF +//#define SMEXT_ENABLE_MEMUTILS #endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_ diff --git a/public/sample_ext/sdk/smsdk_ext.cpp b/public/sample_ext/sdk/smsdk_ext.cpp index 7b4ed0f3..fb4ae4cc 100644 --- a/public/sample_ext/sdk/smsdk_ext.cpp +++ b/public/sample_ext/sdk/smsdk_ext.cpp @@ -48,6 +48,9 @@ IDBManager *dbi = NULL; /**< DB Manager */ #if defined SMEXT_ENABLE_GAMECONF IGameConfigManager *gameconfs = NULL; /**< Game config manager */ #endif //SMEXT_ENABLE_DBMANAGER +#if defined SMEXT_ENABLE_MEMUTILS +IMemoryUtils *memutils = NULL; +#endif /** Exports the main interface */ PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI() @@ -100,6 +103,9 @@ bool SDKExtension::OnExtensionLoad(IExtension *me, IShareSys *sys, char *error, #if defined SMEXT_ENABLE_GAMECONF SM_GET_IFACE(GAMECONFIG, gameconfs); #endif +#if defined SMEXT_ENABLE_MEMUTILS + SM_GET_IFACE(MEMORYUTILS, memutils); +#endif if (SDK_OnLoad(error, maxlength, late)) { diff --git a/public/sample_ext/sdk/smsdk_ext.h b/public/sample_ext/sdk/smsdk_ext.h index b6309d68..44aae586 100644 --- a/public/sample_ext/sdk/smsdk_ext.h +++ b/public/sample_ext/sdk/smsdk_ext.h @@ -42,6 +42,9 @@ #if defined SMEXT_ENABLE_GAMECONF #include #endif +#if defined SMEXT_ENABLE_MEMUTILS +#include +#endif #if defined SMEXT_CONF_METAMOD #include @@ -207,6 +210,9 @@ extern IDBManager *dbi; #if defined SMEXT_ENABLE_GAMECONF extern IGameConfigManager *gameconfs; #endif //SMEXT_ENABLE_DBMANAGER +#if defined SMEXT_ENABLE_MEMUTILS +extern IMemoryUtils *memutils; +#endif #if defined SMEXT_CONF_METAMOD PLUGIN_GLOBALVARS();