VOGONS


First post, by b4283

User metadata

sometimes user choose to make CD-ROM image for better performance
but it comes up with another problem when dealing with a game that has multiple CDs.
of course, in normal game play, user can always push the eject button to change discs. But in DOSbox, one must input commands to change discs which is unavailable when the running game asked for disc2 or more.
"imgmount" became useless when meeting with such problems, while the solution is to mount the real CD-ROM, save the game after changing the disc, and then back into using "imgmount".

Reply 1 of 11, by b4283

User metadata

my idea is to appoint all parameters that will be used in game play
and use a specific pair of hotkey to change between CD-ROM images

like "imgmount d -1 c:\disc1.cue -2 c:\disc2.cue -3 c:\disc3.cue -t iso"
uses a hotkey like CTRL-F2, and the mount image will change in background so user can continue on game play without quitting the game.

Reply 2 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

well maybe.
floppy images are swapped with ctrl-f4

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 11, by Atrus

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote:

floppy images are swapped with ctrl-f4

yes, but you can't mount more than 1 image with imgmount so CTRL-F4 is useless.Only the BOOT command can do this but what about the non-booting images that are the majority? also, segmantation faults happen all the time using imgmount at least in my computer.

Viva la Revolucion

Reply 4 of 11, by prompt

User metadata
Rank Newbie
Rank
Newbie

I have a small patch that corrects some bugs in the cd image code. Apply with (linux): patch -p0 < cd_image-fix.diff

Reply 5 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

will commit them together with my fixes in the cdrom_image code

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

if (tmp > 38) return -1;
you add this (concerns strlen(ident)
also you increase the length of ident.

A bit odd at first glance.

My fixes are mainly the cdrom label if larger then 8 characters being modified to read 8.3

Water flows down the stream
How to ask questions the smart way!

Reply 7 of 11, by prompt

User metadata
Rank Newbie
Rank
Newbie

if (tmp > 38) return -1;
You are right, this check is unnecessary and can be omited.
Actually the seg. faults were caused by directory entries that were larger than the standard defiened, so I increased the ident field and added some array boundary checks.

Reply 8 of 11, by prompt

User metadata
Rank Newbie
Rank
Newbie

The above patch introduced a new bug, please use this corrected patch. Sorry.

Reply 9 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

argh i allready committed it together with my changes.
will commit it again with hopefull all your changes. will attach the file so you can check it.

Water flows down the stream
How to ask questions the smart way!

Reply 10 of 11, by prompt

User metadata
Rank Newbie
Rank
Newbie

The changes are good. Thanks. I should do more testing next time ...

Reply 11 of 11, by rcblanke

User metadata
Rank Oldbie
Rank
Oldbie

Hi guys,

I suppose this patch is implemented is the current CVS version of Dosbox? If so, would you please explain the exact syntax to use multiple images, and share information about the hotkey for swapping the mounted images? I cannot get it to work (trying it with The 7th Guest to no avail)...

...Or, are you guys just talking about a patch to fix various segfaults? in that case, are there any plans to support multi image-mounting?

Regards,

Ronald