Added Call support to the execute function.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1237
This commit is contained in:
parent
c4d5fb062b
commit
4199f0d483
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell_misc.cpp,v 1.23 2003-09-01 18:19:55 qbix79 Exp $ */
|
||||
/* $Id: shell_misc.cpp,v 1.24 2003-09-08 18:22:57 qbix79 Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -305,6 +305,8 @@ void DOS_Shell::Execute(char * name,char * args) {
|
|||
}
|
||||
if (strcasecmp(extension, ".bat") == 0)
|
||||
{ /* Run the .bat file */
|
||||
/* delete old batch file if call is not active*/
|
||||
if(bf && !call) delete bf;
|
||||
bf=new BatchFile(this,fullname,line);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue