1
0
Fork 0

Illegal command displays the command

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@96
This commit is contained in:
Peter Veenstra 2002-07-30 09:51:26 +00:00
parent cbc226bf92
commit 20a6b42f1c
3 changed files with 3 additions and 3 deletions

View file

@ -2,4 +2,4 @@
- fixed compilation error on FreeBSD when #disable_joystick was defined
- int10_writechar has been updated to move the cursor position.
- changed the basedir routines to use the current working dir instead of argv[0]. This will fix and brake things :)
- illegal command, now displays the command

View file

@ -71,5 +71,5 @@ The DOSBox Team
Drive %c does not exist!
.
:SHELL_EXECUTE_ILLEGAL_COMMAND
Illegal command
Illegal command: %s
.

View file

@ -138,7 +138,7 @@ void DOS_Shell::Execute(char * name,char * args) {
/* Check for a full name */
fullname=Which(name);
if (!fullname) {
WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND"));
WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND"),name);
return;
}
if (strcasecmp(strrchr(fullname, '.'), ".bat") == 0) {