updated sdk to include usermsgs
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401699
This commit is contained in:
parent
200fe16e1c
commit
5c2e13b12b
@ -74,5 +74,6 @@
|
|||||||
//#define SMEXT_ENABLE_PLUGINSYS
|
//#define SMEXT_ENABLE_PLUGINSYS
|
||||||
//#define SMEXT_ENABLE_ADMINSYS
|
//#define SMEXT_ENABLE_ADMINSYS
|
||||||
//#define SMEXT_ENABLE_TEXTPARSERS
|
//#define SMEXT_ENABLE_TEXTPARSERS
|
||||||
|
#define SMEXT_ENABLE_USERMSGS
|
||||||
|
|
||||||
#endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
|
@ -91,6 +91,9 @@ IAdminSystem *adminsys = NULL;
|
|||||||
#if defined SMEXT_ENABLE_TEXTPARSERS
|
#if defined SMEXT_ENABLE_TEXTPARSERS
|
||||||
ITextParsers *textparsers = NULL;
|
ITextParsers *textparsers = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined SMEXT_ENABLE_USERMSGS
|
||||||
|
IUserMessages *usermsgs = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Exports the main interface */
|
/** Exports the main interface */
|
||||||
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
|
PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
|
||||||
@ -173,6 +176,9 @@ bool SDKExtension::OnExtensionLoad(IExtension *me, IShareSys *sys, char *error,
|
|||||||
#if defined SMEXT_ENABLE_TEXTPARSERS
|
#if defined SMEXT_ENABLE_TEXTPARSERS
|
||||||
SM_GET_IFACE(TEXTPARSERS, textparsers);
|
SM_GET_IFACE(TEXTPARSERS, textparsers);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined SMEXT_ENABLE_USERMSGS
|
||||||
|
SM_GET_IFACE(USERMSGS, usermsgs);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (SDK_OnLoad(error, maxlength, late))
|
if (SDK_OnLoad(error, maxlength, late))
|
||||||
{
|
{
|
||||||
|
@ -85,6 +85,9 @@
|
|||||||
#if defined SMEXT_ENABLE_TEXTPARSERS
|
#if defined SMEXT_ENABLE_TEXTPARSERS
|
||||||
#include <ITextParsers.h>
|
#include <ITextParsers.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined SMEXT_ENABLE_USERMSGS
|
||||||
|
#include <IUserMessages.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
#include <ISmmPlugin.h>
|
#include <ISmmPlugin.h>
|
||||||
@ -277,6 +280,9 @@ extern IMenuManager *menus;
|
|||||||
#if defined SMEXT_ENABLE_ADMINSYS
|
#if defined SMEXT_ENABLE_ADMINSYS
|
||||||
extern IAdminSystem *adminsys;
|
extern IAdminSystem *adminsys;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined SMEXT_ENABLE_USERMSGS
|
||||||
|
extern IUserMessages *usermsgs;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
PLUGIN_GLOBALVARS();
|
PLUGIN_GLOBALVARS();
|
||||||
|
Loading…
Reference in New Issue
Block a user