First post, by rcblanke
rcblanke
Offline
Rank
Oldbie
- Rank
- Oldbie
Hi,
Here's a simple patch to provide automatic iso/cue file imgmounting, when dragging a CD image onto a DOSBox shortcut (as long as the filename is in 8.3 format).
Mods, would you be as kind to move it to the patches section?
Index: shell.cpp===================================================================RCS file: /cvsroot/dosbox/dosbox/src/shell/shell.cpp,vretrieving revision 1.99diff -c -r1.99 shell.cpp*** shell.cpp 14 May 2009 18:44:54 -0000 1.99--- shell.cpp 14 Jun 2009 12:23:58 -0000****************** 412,417 ****--- 412,422 ----//No secure mode here as boot is destructive and enabling securemode disables boot/* Boot image files */autoexec[15].Install(std::string("BOOT ") + name);+ } 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 \"") + name + std::string("\" -t iso"));+ autoexec[16].Install("D:");} else {if(secure) autoexec[14].Install("z:\\config.com -securemode");autoexec[15].Install(name);
Regards,
Ronald