VOGONS

Common searches


First post, by rcblanke

User metadata
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,v
retrieving revision 1.99
diff -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

Reply 1 of 1, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Moved.

DOSBox 0.73 ReadMe | DOSBox Wiki | DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Win 10 Pro