added ISourceMod to SDK by default

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40323
This commit is contained in:
David Anderson 2007-01-19 02:17:24 +00:00
parent 5c6eebcebf
commit 823fd20a6d
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
IShareSys *g_pShareSys = NULL;
IExtension *myself = NULL;
IHandleSys *g_pHandleSys = NULL;
ISourceMod *g_pSM = NULL;
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
{
@ -38,6 +39,7 @@ bool SDKExtension::OnExtensionLoad(IExtension *me, IShareSys *sys, char *error,
#endif
SM_GET_IFACE(HANDLESYSTEM, g_pHandleSys);
SM_GET_IFACE(SOURCEMOD, g_pSM);
if (SDK_OnLoad(error, err_max, late))
{

View File

@ -6,6 +6,7 @@
#include <IHandleSys.h>
#include <sp_vm_api.h>
#include <sm_platform.h>
#include <ISourceMod.h>
#if defined SMEXT_CONF_METAMOD
#include <ISmmPlugin.h>
@ -121,6 +122,7 @@ extern SDKExtension *g_pExtensionIface;
extern IShareSys *g_pShareSys;
extern IExtension *myself;
extern IHandleSys *g_pHandleSys;
extern ISourceMod *g_pSM;
#if defined SMEXT_CONF_METAMOD
PLUGIN_GLOBALVARS();