Added initial admin system natives
Added a few API changes to the admin system Exposed more interfaces --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40341
This commit is contained in:
@@ -244,6 +244,7 @@ void CExtensionManager::OnSourceModAllInitialized()
|
||||
g_ExtType = g_ShareSys.CreateIdentType("EXTENSION");
|
||||
g_PluginSys.AddPluginsListener(this);
|
||||
g_RootMenu.AddRootConsoleCommand("exts", "Manage extensions", this);
|
||||
g_ShareSys.AddInterface(NULL, this);
|
||||
}
|
||||
|
||||
void CExtensionManager::OnSourceModShutdown()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include "ForwardSys.h"
|
||||
#include "PluginSys.h"
|
||||
#include "ShareSys.h"
|
||||
|
||||
CForwardManager g_Forwards;
|
||||
|
||||
@@ -19,6 +20,7 @@ CForwardManager g_Forwards;
|
||||
void CForwardManager::OnSourceModAllInitialized()
|
||||
{
|
||||
g_PluginSys.AddPluginsListener(this);
|
||||
g_ShareSys.AddInterface(NULL, this);
|
||||
}
|
||||
|
||||
void CForwardManager::OnSourceModShutdown()
|
||||
|
||||
@@ -1249,6 +1249,8 @@ void CPluginManager::OnSourceModAllInitialized()
|
||||
g_PluginIdent = g_ShareSys.CreateIdentType("PLUGIN");
|
||||
|
||||
g_RootMenu.AddRootConsoleCommand("plugins", "Manage Plugins", this);
|
||||
|
||||
g_ShareSys.AddInterface(NULL, this);
|
||||
}
|
||||
|
||||
void CPluginManager::OnSourceModShutdown()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "ShareSys.h"
|
||||
#include "HandleSys.h"
|
||||
#include "ExtensionSys.h"
|
||||
#include "LibrarySys.h"
|
||||
|
||||
ShareSystem g_ShareSys;
|
||||
|
||||
@@ -35,8 +36,9 @@ void ShareSystem::OnSourceModStartup(bool late)
|
||||
/* Initialize our static identity handle */
|
||||
m_IdentRoot.ident = g_HandleSys.CreateHandle(m_TypeRoot, NULL, NULL, GetIdentRoot(), NULL);
|
||||
|
||||
/* Add the Handle System... it's too innocent and pure to do it itself */
|
||||
/* Add the Handle System and others... they are too innocent and pure to do it themselves */
|
||||
AddInterface(NULL, &g_HandleSys);
|
||||
AddInterface(NULL, &g_LibSys);
|
||||
}
|
||||
|
||||
void ShareSystem::OnSourceModShutdown()
|
||||
|
||||
Reference in New Issue
Block a user