Implemented amb20 - 'sm plugins info' now shows when plugin will be reloaded
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40866
This commit is contained in:
parent
e942b77c48
commit
8bd6bf1b57
@ -1782,8 +1782,25 @@ void CPluginManager::OnRootConsoleCommand(const char *command, unsigned int argc
|
|||||||
{
|
{
|
||||||
g_RootMenu.ConsolePrint(" Error: %s", pl->m_errormsg);
|
g_RootMenu.ConsolePrint(" Error: %s", pl->m_errormsg);
|
||||||
} else {
|
} else {
|
||||||
g_RootMenu.ConsolePrint(" Debugging: %s", pl->IsDebugging() ? "yes" : "no");
|
g_RootMenu.ConsolePrint(" Debugging: %s", pl->IsDebugging() ? "Yes" : "No");
|
||||||
g_RootMenu.ConsolePrint(" Running: %s", pl->GetStatus() == Plugin_Running ? "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 {
|
} else {
|
||||||
g_RootMenu.ConsolePrint(" Load error: %s", pl->m_errormsg);
|
g_RootMenu.ConsolePrint(" Load error: %s", pl->m_errormsg);
|
||||||
|
Loading…
Reference in New Issue
Block a user