Please do not post a support request without first reading and following the advice in

[SOLVED] - DOSBox - Won't return to RetroPie menu when game ends

  • In order to make Ignition run without calling several commands every time, I created a script:

    /opt/retropie/emulators/dosbox/bin/dosbox -c "imgmount d /home/pi/RetroPie/roms/pc/Ignition/Ignition.iso -t iso" -c "mount c /home/pi/RetroPie/roms/pc/Ignition/game" -c "c:" -c "IGN_DOS" -exit

    It is working all good until I decide to stop playing and quit the game. As you can see, I added -exit option, but as I quit the game, the DOSBox console remains open and it won't let me back to RetroPie menu, unless I manually type exit in there, which is not what I want, since I play on joystick. I also tried -c "exit", but no effect as well.

  • Once again I was just few hours away from figuring it out by myself, so I will just post the solution here in case anyone has the same problem.

    /opt/retropie/emulators/dosbox/bin/dosbox /home/pi/RetroPie/roms/pc/Ignition/game/IGN_DOS.BAT -exit -c "imgmount d /home/pi/RetroPie/roms/pc/Ignition/Ignition.iso -t iso"

    in order to make -exit command work, you have to specify name parameter, which is /home/pi/RetroPie/roms/pc/Ignition/game/IGN_DOS.BAT in this particular case

  • @Spiky some games dont work with -c "exit" but most do If you are in dosbox if you press ctrl and f1 you can set the (i forget what it is called in there) exit to a keyboard key or a button on your controller. You need a mouse hooked up to move around in the dosbox keymap to set it up though. I set my caps lock as an exit and i set it to my select button on my controller. Having an exit key is a good thing because sometimes games will not exit correctly and wont respond to anything

  • @edmaul69 thank you for advices. I though about mapping "exit" to some key, but I left that as the last option, because I was sure there must be way how to do it without losing one key to it.

  • @Spiky in my case i use an apple iie that is modded with a pi. I also have a mac m0110a keyboard hooked up. They both have click on click off caps locks. I disabled the switches so they cant click down anymore. So now they basically are shift keys. So it was no loss to me. But putting one on a controller if you have the button to spare that wont interfere with using the controller is a good idea.

  • Global Moderator

    @Spiky said in DOSBox - Won't return to RetroPie menu when game ends:

    I was sure there must be way how to do it without losing one key to it.

    I have all of my 38 emulated systems and various ports mapped to exit out with 'select+x' so that I don't lose an individual key that could otherwise be used for game play. It's also just easier to remember. There's a bit of setup involved, but when using a controller, the final result gives everything in RetroPie that cohesive console feeling.

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.