From c4d5fb062b954eda6fb4f444cae4eec198a80a51 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 8 Sep 2003 18:21:19 +0000 Subject: [PATCH] Added Call Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1236 --- src/shell/shell_cmds.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index dae78761..d6da2bb6 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell_cmds.cpp,v 1.26 2003-08-20 12:21:42 qbix79 Exp $ */ +/* $Id: shell_cmds.cpp,v 1.27 2003-09-08 18:21:19 qbix79 Exp $ */ #include @@ -48,6 +48,7 @@ static SHELL_Cmd cmd_list[]={ { "RENAME", 0, &DOS_Shell::CMD_RENAME, "SHELL_CMD_RENAME_HELP"}, { "REN", 1, &DOS_Shell::CMD_RENAME, "SHELL_CMD_RENAME_HELP"}, { "PAUSE", 0, &DOS_Shell::CMD_PAUSE, "SHELL_CMD_PAUSE_HELP"}, +{ "CALL", 0, &DOS_Shell::CMD_CALL, "SHELL_CMD_CALL_HELP"}, { 0,0,0,0} }; @@ -557,3 +558,9 @@ void DOS_Shell::CMD_PAUSE(char * args){ DOS_ReadFile (STDIN,&c,&n); } + +void DOS_Shell::CMD_CALL(char * args){ + this->call=true; /* else the old batchfile will be closed first */ + this->ParseLine(args); + this->call=false; +} \ No newline at end of file