summarylogtreecommitdiffstats
path: root/battle-isle-gog.sh
diff options
context:
space:
mode:
authorConstantin Nickel2019-06-07 04:47:36 +0200
committerConstantin Nickel2019-06-07 04:47:36 +0200
commit6d0b69c10b85dccfae93bc0936869244ba1620c5 (patch)
tree7cd2508e569bffd0c61610b04656fc3625080b36 /battle-isle-gog.sh
parent4024bd24529de79dbfb1d3d2c7f83a2242a703a8 (diff)
downloadaur-6d0b69c10b85dccfae93bc0936869244ba1620c5.tar.gz
use DOSBOX_CMD env var
Diffstat (limited to 'battle-isle-gog.sh')
-rw-r--r--battle-isle-gog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/battle-isle-gog.sh b/battle-isle-gog.sh
index af6112501610..efe989fa8ed4 100644
--- a/battle-isle-gog.sh
+++ b/battle-isle-gog.sh
@@ -14,6 +14,7 @@ cat <<EOF
$script --windowed
$script --addon moon
$script --windowed --desert
+ DOSBOX_CMD=dosbox-x $script
EOF
exit 0
}
@@ -23,6 +24,7 @@ popd() { builtin popd > /dev/null; }
INSTALL_DIR=/opt/battle-isle
HOME_DIR="$HOME"/.gog/battle-isle
+DOSBOX_CMD=${DOSBOX_CMD:-dosbox}
if which unionfs &> /dev/null; then
USE_UNIONFS=1
@@ -76,9 +78,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