1.1 --- a/public/sample_ext/sdk/smsdk_config.h Fri Jun 15 01:58:13 2007 +0000
1.2 +++ b/public/sample_ext/sdk/smsdk_config.h Fri Jun 15 02:01:33 2007 +0000
1.3 @@ -50,5 +50,6 @@
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
1.9 #endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
2.1 --- a/public/sample_ext/sdk/smsdk_ext.cpp Fri Jun 15 01:58:13 2007 +0000
2.2 +++ b/public/sample_ext/sdk/smsdk_ext.cpp Fri Jun 15 02:01:33 2007 +0000
2.3 @@ -40,11 +40,14 @@
2.4 IHandleSys *handlesys = NULL; /**< Handle system */
2.5 #endif
2.6 #if defined SMEXT_ENABLE_PLAYERHELPERS
2.7 -IPlayerHelpers *playerhelpers = NULL; /**< Player helpers */
2.8 +IPlayerManager *playerhelpers = NULL; /**< Player helpers */
2.9 #endif //SMEXT_ENABLE_PLAYERHELPERS
2.10 #if defined SMEXT_ENABLE_DBMANAGER
2.11 IDBManager *dbi = NULL; /**< DB Manager */
2.12 #endif //SMEXT_ENABLE_DBMANAGER
2.13 +#if defined SMEXT_ENABLE_GAMECONF
2.14 +IGameConfigManager *gameconfs = NULL; /**< Game config manager */
2.15 +#endif //SMEXT_ENABLE_DBMANAGER
2.16
2.17 /** Exports the main interface */
2.18 PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
2.19 @@ -94,6 +97,9 @@
2.20 #if defined SMEXT_ENABLE_DBMANAGER
2.21 SM_GET_IFACE(DBI, dbi);
2.22 #endif
2.23 +#if defined SMEXT_ENABLE_GAMECONF
2.24 + SM_GET_IFACE(GAMECONFIG, gameconfs);
2.25 +#endif
2.26
2.27 if (SDK_OnLoad(error, maxlength, late))
2.28 {
3.1 --- a/public/sample_ext/sdk/smsdk_ext.h Fri Jun 15 01:58:13 2007 +0000
3.2 +++ b/public/sample_ext/sdk/smsdk_ext.h Fri Jun 15 02:01:33 2007 +0000
3.3 @@ -39,6 +39,9 @@
3.4 #if defined SMEXT_ENABLE_DBMANAGER
3.5 #include <IDBDriver.h>
3.6 #endif //SMEXT_ENABLE_DBMANAGER
3.7 +#if defined SMEXT_ENABLE_GAMECONF
3.8 +#include <IGameConfigs.h>
3.9 +#endif
3.10
3.11 #if defined SMEXT_CONF_METAMOD
3.12 #include <ISmmPlugin.h>
3.13 @@ -196,11 +199,14 @@
3.14 extern IHandleSys *handlesys; /* Note: Newer name */
3.15 #endif //SMEXT_ENABLE_HANDLESYS
3.16 #if defined SMEXT_ENABLE_PLAYERHELPERS
3.17 -extern IPlayerHelpers *playerhelpers;
3.18 +extern IPlayerManager *playerhelpers;
3.19 #endif //SMEXT_ENABLE_PLAYERHELPERS
3.20 #if defined SMEXT_ENABLE_DBMANAGER
3.21 extern IDBManager *dbi;
3.22 #endif //SMEXT_ENABLE_DBMANAGER
3.23 +#if defined SMEXT_ENABLE_GAMECONF
3.24 +extern IGameConfigManager *gameconfs;
3.25 +#endif //SMEXT_ENABLE_DBMANAGER
3.26
3.27 #if defined SMEXT_CONF_METAMOD
3.28 PLUGIN_GLOBALVARS();