summarylogtreecommitdiffstats
path: root/dungeon-keeper-gold-gog.sh
diff options
context:
space:
mode:
authorConstantin Nickel2019-06-06 18:03:31 +0200
committerConstantin Nickel2019-06-06 18:03:31 +0200
commite0f8dd2377d6120ae1ab314044527524829090b2 (patch)
tree21393316144a6c773bb02307764b0592b56c1266 /dungeon-keeper-gold-gog.sh
parent4ec24b097b0849a7b42ced676feedf932e559cf8 (diff)
downloadaur-e0f8dd2377d6120ae1ab314044527524829090b2.tar.gz
env var `DOSBOX_CMD` to change dosbox command
Diffstat (limited to 'dungeon-keeper-gold-gog.sh')
-rw-r--r--dungeon-keeper-gold-gog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/dungeon-keeper-gold-gog.sh b/dungeon-keeper-gold-gog.sh
index 44ab37c63ee2..1b8e64f6e67e 100644
--- a/dungeon-keeper-gold-gog.sh
+++ b/dungeon-keeper-gold-gog.sh
@@ -15,6 +15,7 @@ cat <<EOF
$script --windowed
$script --client
$script --server --addon
+ DOSBOX_CMD=dosbox-x $script
EOF
exit 0
}
@@ -24,6 +25,7 @@ popd() { builtin popd > /dev/null; }
INSTALL_DIR=/opt/dungeon-keeper-gold
HOME_DIR="$HOME"/.gog/dungeon-keeper-gold
+DOSBOX_CMD=${DOSBOX_CMD:-dosbox}
if which unionfs &> /dev/null; then
USE_UNIONFS=1
@@ -91,9 +93,9 @@ if [ "$USE_UNIONFS" ]; then
unionfs -o cow,relaxed_permissions "$UPPER_DIR=RW:$LOWER_DIR=RO" "$UNION_DIR"
echo "Launching game within $UNION_DIR"
- pushd "$UNION_DIR" && dosbox "${configs[@]}"
+ pushd "$UNION_DIR" && "$DOSBOX_CMD" "${configs[@]}"
popd && fusermount -u "$UNION_DIR"
else
echo "Launching game within $INSTALL_DIR"
- cd $INSTALL_DIR && dosbox "${configs[@]}"
+ cd $INSTALL_DIR && "$DOSBOX_CMD" "${configs[@]}"
fi