1
0
Fork 0

Fix handling of a CDROM image command line option with respect to the -securemode flag

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3779
This commit is contained in:
Peter Veenstra 2012-03-28 15:26:29 +00:00
parent eb0a3dffc2
commit ff538caa62

View file

@ -411,7 +411,7 @@ public:
if (access(buffer,F_OK)) goto nomount;
autoexec[12].Install(std::string("MOUNT C \"") + buffer + "\"");
autoexec[13].Install("C:");
/* Save the non modified filename (so boot and imgmount can use it (long filenames, case sensivitive)*/
/* Save the non-modified filename (so boot and imgmount can use it (long filenames, case sensivitive)) */
strcpy(orig,name);
upcase(name);
if(strstr(name,".BAT") != 0) {
@ -424,10 +424,11 @@ public:
/* Boot image files */
autoexec[15].Install(std::string("BOOT ") + orig);
} else if((strstr(name,".ISO") != 0) || (strstr(name,".CUE") !=0 )) {
if(secure) autoexec[14].Install("z:\\config.com -securemode");
/* imgmount CD image files */
autoexec[15].Install(std::string("IMGMOUNT D \"") + orig + std::string("\" -t iso"));
/* securemode gets a different number from the previous branches! */
autoexec[14].Install(std::string("IMGMOUNT D \"") + orig + std::string("\" -t iso"));
//autoexec[16].Install("D:");
if(secure) autoexec[15].Install("z:\\config.com -securemode");
/* Makes no sense to exit here */
} else {
if(secure) autoexec[14].Install("z:\\config.com -securemode");