schellingb / dosbox-pure

DOSBox Pure is a new fork of DOSBox built for RetroArch/Libretro aiming for simplicity and ease of use.
GNU General Public License v2.0
769 stars 65 forks source link

AUTOBOOT.DBP should allow forward slashes for command switches; it does not currently #531

Open SpiralBrad opened 1 month ago

SpiralBrad commented 1 month ago

Current behavior: AUTOBOOT.DBP does not allow forward slashes for command-line parameters.

Expected behavior: AUTOBOOT.DBP allows the use of forward slashes for command-line parameters.

(Using DOSbox-pure 0.9.9)


Essentially, I am trying to have an AUTOBOOT.DBP for Wolfenstein 3-D that runs it with the /GOOBERS cheat parameter.

Command-line parameters DO work for other games; for example, Tetris Classic lets you specify video and sound parameters on the command-line, and launching without ANY parameters causes it to prompt you.

An AUTOBOOT.DBP for Tetris Classic that contains: C:\TETRISC\TETRISC.EXE will prompt you. If it contains C:\TETRISC\TETRISC.EXE V A, it does not prompt, and uses VGA and AdLib, as you specified them. This confirms that AUTOBOOT.DBP does allow command-line parameters. (This does not seem to be documented.)

For Wolfenstein 3-D, if AUTOBOOT.DBP contains C:\WOLF3D\WOLF3D.EXE /GOOBERS, all that happens is a blinking cursor and nothing happens further; no errors or anything. The proper behavior seems like it should launch just fine. I am unsure what causes the blinking cursor.

SpiralBrad commented 1 month ago

Cheers, @schellingb!

alexb3d commented 1 month ago

You can run wolf3d -goobers or wolf3d goobers with the same result.

The "/" parameter is intended for Batch files.

Additionally, you can create a GOOBERS.BAT file and write inside WOLF3D /GOOBERS, (or any of the above) place it next to the executable and start that batch with the AUTOBOOT. This works for any game.

alexb3d commented 1 month ago

A trick.

With the 'echo xxx >file.txt ' command you can create a simple one-line batch, without exiting PURE.

At Command Line C:> (and with Game Focus set to On) is written:

echo CHESS /COMP >CGACOMP.BAT

Press enter to save, the file is created in the game save.zip and can be started from PUREMENU.

Captura de pantalla de 2024-09-11 19-00-57