changed this to reject iface removal by default

added forwardsys to defaults

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40334
This commit is contained in:
David Anderson 2007-01-19 10:02:43 +00:00
parent ec93a3eb80
commit 607509cec6
3 changed files with 5 additions and 1 deletions

View File

@ -135,7 +135,7 @@ namespace SourceMod
*/ */
virtual bool QueryInterfaceDrop(SMInterface *pInterface) virtual bool QueryInterfaceDrop(SMInterface *pInterface)
{ {
return true; return false;
} }
/** /**

View File

@ -5,6 +5,7 @@ IShareSys *g_pShareSys = NULL;
IExtension *myself = NULL; IExtension *myself = NULL;
IHandleSys *g_pHandleSys = NULL; IHandleSys *g_pHandleSys = NULL;
ISourceMod *g_pSM = NULL; ISourceMod *g_pSM = NULL;
IForwardManager *g_pForwards = NULL;
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI() PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
{ {
@ -40,6 +41,7 @@ bool SDKExtension::OnExtensionLoad(IExtension *me, IShareSys *sys, char *error,
SM_GET_IFACE(HANDLESYSTEM, g_pHandleSys); SM_GET_IFACE(HANDLESYSTEM, g_pHandleSys);
SM_GET_IFACE(SOURCEMOD, g_pSM); SM_GET_IFACE(SOURCEMOD, g_pSM);
SM_GET_IFACE(FORWARDMANAGER, g_pForwards);
if (SDK_OnLoad(error, err_max, late)) if (SDK_OnLoad(error, err_max, late))
{ {

View File

@ -7,6 +7,7 @@
#include <sp_vm_api.h> #include <sp_vm_api.h>
#include <sm_platform.h> #include <sm_platform.h>
#include <ISourceMod.h> #include <ISourceMod.h>
#include <IForwardSys.h>
#if defined SMEXT_CONF_METAMOD #if defined SMEXT_CONF_METAMOD
#include <ISmmPlugin.h> #include <ISmmPlugin.h>
@ -123,6 +124,7 @@ extern IShareSys *g_pShareSys;
extern IExtension *myself; extern IExtension *myself;
extern IHandleSys *g_pHandleSys; extern IHandleSys *g_pHandleSys;
extern ISourceMod *g_pSM; extern ISourceMod *g_pSM;
extern IForwardManager *g_pForwards;
#if defined SMEXT_CONF_METAMOD #if defined SMEXT_CONF_METAMOD
PLUGIN_GLOBALVARS(); PLUGIN_GLOBALVARS();