joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

Is it possible to have a "SWAP" command that swaps mounted floppy images? #2850

Open Banjo-Oz opened 3 years ago

Banjo-Oz commented 3 years ago

Unless I've missed it, right now the only way to swap floppy images when you have mounted several is to either use the menu or the obscure "F11+CRTL+O" key combination.

Would it be possible to allow image swapping from the commandline (i.e. inside DOSBox-X itself)?

For example, typing "SWAP A" to cycle to the next mounted image for a drive, or even better "SWAP A 3" to swap to the third mounted image (I assume the program keeps track of what "number" an image is, as the info function in the menu lists images as if they are numerically indexed).

It would be especially nice to be able to "jump" to an image rather than cycle through a bunch of them, however just a command that replicates pressing F11+CTRL+O would be good enough.

Also, slightly off-topic, but are there any plans or way that an optional GUI feature that displays drive "activity lights" etc. when DOSBox-X is in windowed mode? Better yet, with drive sounds? :)

Wengier commented 3 years ago

@Banjo-Oz I guess a dedicated command is indeed a good way for such an operation from the DOS command line. I have added an IMGSWAP command (similar to IMGMAKE and IMGMOUNT command names) to do what you suggested, e.g. SWAP A (or SWAP A:) to swap disk A:, and SWAP A 3 (or SWAP A: 3) will swap to the third mounted image for disk A:. SWAP command by itself will display all swappable drives. You can try the updated Windows binary with IMGSWAP command:

As for the idea of "activity lights", I think it is similar to issue #1427 for activity indicators. It is not yet implemented, but was planned as mentioned in that thread.