Added RootConsoleMenu iface support to sample ext (bug 5021, r=psychonic).
authorBrian Simon <bluebriansimon@gmail.com>
Mon Oct 17 10:55:44 2011 -0400 (2011-10-17)
changeset 3415d5410177e3ea
parent 3414 3d224fc6dca6
child 3416 7cb415ecd933
Added RootConsoleMenu iface support to sample ext (bug 5021, r=psychonic).
public/sample_ext/sdk/smsdk_config.h
public/sample_ext/sdk/smsdk_ext.cpp
public/sample_ext/sdk/smsdk_ext.h
     1.1 --- a/public/sample_ext/sdk/smsdk_config.h	Mon Oct 17 10:47:13 2011 -0400
     1.2 +++ b/public/sample_ext/sdk/smsdk_config.h	Mon Oct 17 10:55:44 2011 -0400
     1.3 @@ -77,5 +77,6 @@
     1.4  //#define SMEXT_ENABLE_USERMSGS
     1.5  //#define SMEXT_ENABLE_TRANSLATOR
     1.6  //#define SMEXT_ENABLE_NINVOKE
     1.7 +//#define SMEXT_ENABLE_ROOTCONSOLEMENU
     1.8  
     1.9  #endif // _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
     2.1 --- a/public/sample_ext/sdk/smsdk_ext.cpp	Mon Oct 17 10:47:13 2011 -0400
     2.2 +++ b/public/sample_ext/sdk/smsdk_ext.cpp	Mon Oct 17 10:55:44 2011 -0400
     2.3 @@ -100,6 +100,9 @@
     2.4  #if defined SMEXT_ENABLE_NINVOKE
     2.5  INativeInterface *ninvoke = NULL;
     2.6  #endif
     2.7 +#if defined SMEXT_ENABLE_ROOTCONSOLEMENU
     2.8 +IRootConsole *rootconsole = NULL;
     2.9 +#endif
    2.10  
    2.11  /** Exports the main interface */
    2.12  PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
    2.13 @@ -188,6 +191,9 @@
    2.14  #if defined SMEXT_ENABLE_TRANSLATOR
    2.15  	SM_GET_IFACE(TRANSLATOR, translator);
    2.16  #endif
    2.17 +#if defined SMEXT_ENABLE_ROOTCONSOLEMENU
    2.18 +	SM_GET_IFACE(ROOTCONSOLE, rootconsole);
    2.19 +#endif
    2.20  
    2.21  	if (SDK_OnLoad(error, maxlength, late))
    2.22  	{
     3.1 --- a/public/sample_ext/sdk/smsdk_ext.h	Mon Oct 17 10:47:13 2011 -0400
     3.2 +++ b/public/sample_ext/sdk/smsdk_ext.h	Mon Oct 17 10:55:44 2011 -0400
     3.3 @@ -94,6 +94,9 @@
     3.4  #if defined SMEXT_ENABLE_NINVOKE
     3.5  #include <INativeInvoker.h>
     3.6  #endif
     3.7 +#if defined SMEXT_ENABLE_ROOTCONSOLEMENU
     3.8 +#include <IRootConsoleMenu.h>
     3.9 +#endif
    3.10  
    3.11  #if defined SMEXT_CONF_METAMOD
    3.12  #include <ISmmPlugin.h>