added amb1447 - IRootConsoleMenu exposure
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401889
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "HandleSys.h"
|
||||
#include "CoreConfig.h"
|
||||
#include "ConVarManager.h"
|
||||
#include "ShareSys.h"
|
||||
|
||||
RootConsoleMenu g_RootMenu;
|
||||
|
||||
@@ -82,6 +83,7 @@ void RootConsoleMenu::OnSourceModStartup(bool late)
|
||||
void RootConsoleMenu::OnSourceModAllInitialized()
|
||||
{
|
||||
g_ConVarManager.AddConVarChangeListener("hostname", &s_HostnameChangeDetector);
|
||||
g_ShareSys.AddInterface(NULL, this);
|
||||
}
|
||||
|
||||
void RootConsoleMenu::OnSourceModShutdown()
|
||||
@@ -215,6 +217,16 @@ void RootConsoleMenu::DrawGenericOption(const char *cmd, const char *text)
|
||||
}
|
||||
}
|
||||
|
||||
const char *RootConsoleMenu::GetInterfaceName()
|
||||
{
|
||||
return SMINTERFACE_ROOTCONSOLE_NAME;
|
||||
}
|
||||
|
||||
unsigned int RootConsoleMenu::GetInterfaceVersion()
|
||||
{
|
||||
return SMINTERFACE_ROOTCONSOLE_VERSION;
|
||||
}
|
||||
|
||||
extern void _IntExt_EnableYams();
|
||||
|
||||
void RootConsoleMenu::GotRootCmd(const CCommand &cmd)
|
||||
|
||||
@@ -59,6 +59,9 @@ class RootConsoleMenu :
|
||||
public:
|
||||
RootConsoleMenu();
|
||||
~RootConsoleMenu();
|
||||
public:
|
||||
const char *GetInterfaceName();
|
||||
unsigned int GetInterfaceVersion();
|
||||
public: //IConCommandBaseAccessor
|
||||
bool RegisterConCommandBase(ConCommandBase *pCommand);
|
||||
public: //SMGlobalClass
|
||||
|
||||
Reference in New Issue
Block a user