From 607509cec61a57219c6aad52b8488d90d18c2ec3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Jan 2007 10:02:43 +0000 Subject: [PATCH] changed this to reject iface removal by default added forwardsys to defaults --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40334 --- public/IExtensionSys.h | 2 +- public/sample_ext/smsdk_ext.cpp | 2 ++ public/sample_ext/smsdk_ext.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 36c5430d..c96ba405 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -135,7 +135,7 @@ namespace SourceMod */ virtual bool QueryInterfaceDrop(SMInterface *pInterface) { - return true; + return false; } /** diff --git a/public/sample_ext/smsdk_ext.cpp b/public/sample_ext/smsdk_ext.cpp index 01e3f42c..ddd0cc5b 100644 --- a/public/sample_ext/smsdk_ext.cpp +++ b/public/sample_ext/smsdk_ext.cpp @@ -5,6 +5,7 @@ IShareSys *g_pShareSys = NULL; IExtension *myself = NULL; IHandleSys *g_pHandleSys = NULL; ISourceMod *g_pSM = NULL; +IForwardManager *g_pForwards = NULL; 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(SOURCEMOD, g_pSM); + SM_GET_IFACE(FORWARDMANAGER, g_pForwards); if (SDK_OnLoad(error, err_max, late)) { diff --git a/public/sample_ext/smsdk_ext.h b/public/sample_ext/smsdk_ext.h index 07362c78..16d931bc 100644 --- a/public/sample_ext/smsdk_ext.h +++ b/public/sample_ext/smsdk_ext.h @@ -7,6 +7,7 @@ #include #include #include +#include #if defined SMEXT_CONF_METAMOD #include @@ -123,6 +124,7 @@ extern IShareSys *g_pShareSys; extern IExtension *myself; extern IHandleSys *g_pHandleSys; extern ISourceMod *g_pSM; +extern IForwardManager *g_pForwards; #if defined SMEXT_CONF_METAMOD PLUGIN_GLOBALVARS();