1.1 --- a/core/systems/ExtensionSys.cpp Sat Oct 13 22:13:43 2007 +0000
1.2 +++ b/core/systems/ExtensionSys.cpp Sun Oct 14 00:04:21 2007 +0000
1.3 @@ -813,11 +813,12 @@
1.4 }
1.5 }
1.6
1.7 -void CExtensionManager::OnRootConsoleCommand(const char *cmd, unsigned int argcount)
1.8 +void CExtensionManager::OnRootConsoleCommand(const char *cmdname, const CCommand &command)
1.9 {
1.10 + int argcount = command.ArgC();
1.11 if (argcount >= 3)
1.12 {
1.13 - const char *cmd = g_RootMenu.GetArgument(2);
1.14 + const char *cmd = command.Arg(2);
1.15 if (strcmp(cmd, "list") == 0)
1.16 {
1.17 List<CExtension *>::iterator iter;
1.18 @@ -869,7 +870,7 @@
1.19 return;
1.20 }
1.21
1.22 - const char *sId = g_RootMenu.GetArgument(3);
1.23 + const char *sId = command.Arg(3);
1.24 unsigned int id = atoi(sId);
1.25 if (id <= 0)
1.26 {
1.27 @@ -936,7 +937,7 @@
1.28 return;
1.29 }
1.30
1.31 - const char *arg = g_RootMenu.GetArgument(3);
1.32 + const char *arg = command.Arg(3);
1.33 unsigned int num = atoi(arg);
1.34 CExtension *pExt = FindByOrder(num);
1.35
1.36 @@ -948,7 +949,7 @@
1.37
1.38 if (argcount > 4 && pExt->unload_code)
1.39 {
1.40 - const char *unload = g_RootMenu.GetArgument(4);
1.41 + const char *unload = command.Arg(4);
1.42 if (pExt->unload_code == (unsigned)atoi(unload))
1.43 {
1.44 char filename[PLATFORM_MAX_PATH];