core/systems/PluginSys.cpp
changeset 310 1efceafbda26
parent 309 51e67f50830e
child 311 31192ed0fe13
     1.1 --- a/core/systems/PluginSys.cpp	Wed Jan 17 18:22:00 2007 +0000
     1.2 +++ b/core/systems/PluginSys.cpp	Thu Jan 18 00:17:36 2007 +0000
     1.3 @@ -1422,7 +1422,7 @@
     1.4  		} else if (strcmp(cmd, "load") == 0) {
     1.5  			if (argcount < 4)
     1.6  			{
     1.7 -				g_RootMenu.ConsolePrint("Usage: sm plugins load <file>");
     1.8 +				g_RootMenu.ConsolePrint("[SM] Usage: sm plugins load <file>");
     1.9  				return;
    1.10  			}
    1.11  
    1.12 @@ -1441,7 +1441,7 @@
    1.13  		} else if (strcmp(cmd, "unload") == 0) {
    1.14  			if (argcount < 4)
    1.15  			{
    1.16 -				g_RootMenu.ConsolePrint("Usage: sm plugins unload <#>");
    1.17 +				g_RootMenu.ConsolePrint("[SM] Usage: sm plugins unload <#>");
    1.18  				return;
    1.19  			}
    1.20  
    1.21 @@ -1449,7 +1449,7 @@
    1.22  			int num = atoi(g_RootMenu.GetArgument(3));
    1.23  			if (num < 1 || num > (int)GetPluginCount())
    1.24  			{
    1.25 -				g_RootMenu.ConsolePrint("Plugin index %d not found.", num);
    1.26 +				g_RootMenu.ConsolePrint("[SM] Plugin index %d not found.", num);
    1.27  				return;
    1.28  			}
    1.29  
    1.30 @@ -1464,9 +1464,9 @@
    1.31  
    1.32  			if (UnloadPlugin(pl))
    1.33  			{
    1.34 -				g_RootMenu.ConsolePrint("Plugin %s unloaded successfully.", name);
    1.35 +				g_RootMenu.ConsolePrint("[SM] Plugin %s unloaded successfully.", name);
    1.36  			} else {
    1.37 -				g_RootMenu.ConsolePrint("Failed to unload plugin %s.", name);
    1.38 +				g_RootMenu.ConsolePrint("[SM] Failed to unload plugin %s.", name);
    1.39  			}
    1.40  
    1.41  			iter->Release();
    1.42 @@ -1474,7 +1474,7 @@
    1.43  		} else if (strcmp(cmd, "info") == 0) {
    1.44  			if (argcount < 4)
    1.45  			{
    1.46 -				g_RootMenu.ConsolePrint("Usage: sm plugins info <#>");
    1.47 +				g_RootMenu.ConsolePrint("[SM] Usage: sm plugins info <#>");
    1.48  				return;
    1.49  			}
    1.50  
    1.51 @@ -1482,7 +1482,7 @@
    1.52  			int num = atoi(g_RootMenu.GetArgument(3));
    1.53  			if (num < 1 || num > (int)GetPluginCount())
    1.54  			{
    1.55 -				g_RootMenu.ConsolePrint("Plugin index not found.");
    1.56 +				g_RootMenu.ConsolePrint("[SM] Plugin index not found.");
    1.57  				return;
    1.58  			}
    1.59  
    1.60 @@ -1524,14 +1524,14 @@
    1.61  		} else if (strcmp(cmd, "debug") == 0) {
    1.62  			if (argcount < 5)
    1.63  			{
    1.64 -				g_RootMenu.ConsolePrint("Usage: sm plugins debug <#> [on|off]");
    1.65 +				g_RootMenu.ConsolePrint("[SM] Usage: sm plugins debug <#> [on|off]");
    1.66  				return;
    1.67  			}
    1.68  
    1.69  			int num = atoi(g_RootMenu.GetArgument(3));
    1.70  			if (num < 1 || num > (int)GetPluginCount())
    1.71  			{
    1.72 -				g_RootMenu.ConsolePrint("Plugin index not found.");
    1.73 +				g_RootMenu.ConsolePrint("[SM] Plugin index not found.");
    1.74  				return;
    1.75  			}
    1.76  
    1.77 @@ -1539,7 +1539,7 @@
    1.78  			const char *mode = g_RootMenu.GetArgument(4);
    1.79  			if ((res=strcmp("on", mode)) && strcmp("off", mode))
    1.80  			{
    1.81 -				g_RootMenu.ConsolePrint("The only possible options are \"on\" and \"off.\"");
    1.82 +				g_RootMenu.ConsolePrint("[SM] The only possible options are \"on\" and \"off.\"");
    1.83  				return;
    1.84  			}
    1.85  
    1.86 @@ -1564,7 +1564,7 @@
    1.87  			char error[256];
    1.88  			if (pl->ToggleDebugMode(debug, error, sizeof(error)))
    1.89  			{
    1.90 -				g_RootMenu.ConsolePrint("Successfully toggled debug mode on plugin %s.", pl->GetFilename());
    1.91 +				g_RootMenu.ConsolePrint("[SM] Successfully toggled debug mode on plugin %s.", pl->GetFilename());
    1.92  				return;
    1.93  			} else {
    1.94  				g_RootMenu.ConsolePrint("[SM] Could not toggle debug mode on plugin %s.", pl->GetFilename());