added ISourceMod to SDK by default
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40323
This commit is contained in:
parent
5c6eebcebf
commit
823fd20a6d
@ -4,6 +4,7 @@
|
|||||||
IShareSys *g_pShareSys = NULL;
|
IShareSys *g_pShareSys = NULL;
|
||||||
IExtension *myself = NULL;
|
IExtension *myself = NULL;
|
||||||
IHandleSys *g_pHandleSys = NULL;
|
IHandleSys *g_pHandleSys = NULL;
|
||||||
|
ISourceMod *g_pSM = NULL;
|
||||||
|
|
||||||
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
|
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
|
||||||
{
|
{
|
||||||
@ -38,6 +39,7 @@ bool SDKExtension::OnExtensionLoad(IExtension *me, IShareSys *sys, char *error,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
SM_GET_IFACE(HANDLESYSTEM, g_pHandleSys);
|
SM_GET_IFACE(HANDLESYSTEM, g_pHandleSys);
|
||||||
|
SM_GET_IFACE(SOURCEMOD, g_pSM);
|
||||||
|
|
||||||
if (SDK_OnLoad(error, err_max, late))
|
if (SDK_OnLoad(error, err_max, late))
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
#include <sp_vm_api.h>
|
#include <sp_vm_api.h>
|
||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
|
#include <ISourceMod.h>
|
||||||
|
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
#include <ISmmPlugin.h>
|
#include <ISmmPlugin.h>
|
||||||
@ -121,6 +122,7 @@ extern SDKExtension *g_pExtensionIface;
|
|||||||
extern IShareSys *g_pShareSys;
|
extern IShareSys *g_pShareSys;
|
||||||
extern IExtension *myself;
|
extern IExtension *myself;
|
||||||
extern IHandleSys *g_pHandleSys;
|
extern IHandleSys *g_pHandleSys;
|
||||||
|
extern ISourceMod *g_pSM;
|
||||||
|
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
PLUGIN_GLOBALVARS();
|
PLUGIN_GLOBALVARS();
|
||||||
|
Loading…
Reference in New Issue
Block a user