From 8bd6bf1b57eec2518a23a73ac8924f06ce4564fd Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 29 May 2007 20:18:53 +0000 Subject: [PATCH] Implemented amb20 - 'sm plugins info' now shows when plugin will be reloaded --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40866 --- core/systems/PluginSys.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/core/systems/PluginSys.cpp b/core/systems/PluginSys.cpp index 1fb61921..35a20c79 100644 --- a/core/systems/PluginSys.cpp +++ b/core/systems/PluginSys.cpp @@ -1782,8 +1782,25 @@ void CPluginManager::OnRootConsoleCommand(const char *command, unsigned int argc { g_RootMenu.ConsolePrint(" Error: %s", pl->m_errormsg); } else { - g_RootMenu.ConsolePrint(" Debugging: %s", pl->IsDebugging() ? "yes" : "no"); - g_RootMenu.ConsolePrint(" Running: %s", pl->GetStatus() == Plugin_Running ? "yes" : "no"); + g_RootMenu.ConsolePrint(" Debugging: %s", pl->IsDebugging() ? "Yes" : "No"); + g_RootMenu.ConsolePrint(" Running: %s", pl->GetStatus() == Plugin_Running ? "Yes" : "No"); + + const char *typestr; + switch (pl->GetType()) + { + case PluginType_MapUpdated: + typestr = "Map Change if Updated"; + break; + case PluginType_MapOnly: + typestr = "Map Change"; + break; + case PluginType_Private: + case PluginType_Global: + typestr = "Never"; + break; + } + + g_RootMenu.ConsolePrint(" Reloads: %s", typestr); } } else { g_RootMenu.ConsolePrint(" Load error: %s", pl->m_errormsg);