From 1fb4a182e7f7704d977bc476a92307baeccda01d Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 2 May 2005 17:05:59 +0000 Subject: (svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)). - Fix: getting help for an alias works - Fix: '|' is an unprintable character, replace it with '\' --- console_cmds.c | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) (limited to 'console_cmds.c') diff --git a/console_cmds.c b/console_cmds.c index 69518d37c..3fd533a22 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -193,7 +193,7 @@ DEF_CONSOLE_CMD(ConLoad) const char *file; if (argc == 0) { - IConsoleHelp("Load a game by name or index. Usage: 'load '"); + IConsoleHelp("Load a game by name or index. Usage: 'load '"); return true; } @@ -223,7 +223,7 @@ DEF_CONSOLE_CMD(ConListFiles) int i; if (argc == 0) { - IConsoleHelp("List all the files in the current dir via console. Usage: 'ls | dir'"); + IConsoleHelp("List all the files in the current dir via console. Usage: 'ls \\ dir'"); return true; } @@ -245,7 +245,7 @@ DEF_CONSOLE_CMD(ConChangeDirectory) const char *file; if (argc == 0) { - IConsoleHelp("Change the dir via console. Usage: 'cd '"); + IConsoleHelp("Change the dir via console. Usage: 'cd '"); return true; } @@ -605,6 +605,7 @@ DEF_CONSOLE_CMD(ConNetworkConnect) DEF_CONSOLE_CMD(ConExec) { char cmdline[ICON_CMDLN_SIZE]; + char *cmdptr; if (argc == 0) { IConsoleHelp("Execute a local script file. Usage: 'exec