Autobooting of IMG and IMA files when given as first parameter (or dropped on the executable)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2912
This commit is contained in:
parent
63e3d65460
commit
e739eeab8e
1 changed files with 8 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell.cpp,v 1.85 2007-06-14 08:23:46 qbix79 Exp $ */
|
||||
/* $Id: shell.cpp,v 1.86 2007-07-03 17:32:14 qbix79 Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -400,12 +400,16 @@ public:
|
|||
autoexec[12].Install(std::string("MOUNT C \"") + buffer + "\"");
|
||||
autoexec[13].Install("C:");
|
||||
upcase(name);
|
||||
if(strstr(name,".BAT") == 0) {
|
||||
autoexec[14].Install(name);
|
||||
} else {
|
||||
if(strstr(name,".BAT") != 0) {
|
||||
/* BATch files are called else exit will not work */
|
||||
autoexec[14].Install(std::string("CALL ") + name);
|
||||
} else if((strstr(name,".IMG") != 0) || (strstr(name,".IMA") !=0)) {
|
||||
/* Boot image files */
|
||||
autoexec[14].Install(std::string("BOOT ") + name);
|
||||
} else {
|
||||
autoexec[14].Install(name);
|
||||
}
|
||||
|
||||
if(addexit) autoexec[15].Install("exit");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue