First post, by SlimG
My Goal:
- Launch a game from any platform with default dosbox
settings, and without having to edit files when moving
the game between platforms and paths. - Launch a game using only one path as argument to dosbox
Example game:
/dir/cg/dosbox.conf
/dir/cg/coolgame.exe
- The problem: This would launch the game, but requires two path arguments, and thus is of no use.
dosbox -conf /dir/cg/dosbox.conf /dir/cg/coolgame.exe - Adding the following to /dir/cg/dosbox.conf:
before running[autoexec] MOUNT C . C: coolgame.exe […]
[autoexec]
MOUNT C .
C:
coolgame.exeThe problem: This would only work if I run dosbox from within /dir/cg/dosbox -conf /dir/cg/dosbox.conf
What I would wish for, is a variable named %CONFDIR% that would return the real directory of the current config file, so this would be the working sollution:
Adding the following to /dir/cg/dosbox.conf:
[autoexec] MOUNT C %CONFDIR% C: coolgame.exe […]
[autoexec]
MOUNT C %CONFDIR%
C:
coolgame.exebefore running […]
before running
dosbox -conf /dir/cg/dosbox.confAnother way of solving this would be to change the default behaviour of dosbox to allways check for dosbox.conf before executing.