summarylogtreecommitdiffstats
path: root/historyline-1914-1918-gog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'historyline-1914-1918-gog.sh')
-rw-r--r--historyline-1914-1918-gog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/historyline-1914-1918-gog.sh b/historyline-1914-1918-gog.sh
index c63cd462f7f4..49095bfb8e5b 100644
--- a/historyline-1914-1918-gog.sh
+++ b/historyline-1914-1918-gog.sh
@@ -10,6 +10,7 @@ cat <<EOF
$script
$script --windowed
+ DOSBOX_CMD=dosbox-x $script
EOF
exit 0
}
@@ -19,6 +20,7 @@ popd() { builtin popd > /dev/null; }
INSTALL_DIR=/opt/historyline-1914-1918
HOME_DIR="$HOME"/.gog/historyline-1914-1918
+DOSBOX_CMD=${DOSBOX_CMD:-dosbox}
if which unionfs &> /dev/null; then
USE_UNIONFS=1
@@ -57,9 +59,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