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:
David Anderson
2007-01-24 23:43:31 +00:00
parent ffd308f42c
commit 0b8b26042e
11 changed files with 349 additions and 28 deletions
+1
View File
@@ -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()
+2
View File
@@ -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()
+2
View File
@@ -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()
+3 -1
View File
@@ -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()