summarylogtreecommitdiffstats
path: root/syndicate-plus-gog.sh
diff options
context:
space:
mode:
authorConstantin Nickel2019-06-07 05:34:39 +0200
committerConstantin Nickel2019-06-07 05:34:39 +0200
commita546af6c8c798a7ae629248eea061227e56c325d (patch)
tree29af5edc44f48c027ea92d46bcba89378ff44843 /syndicate-plus-gog.sh
parent581dfe0f4c720ef984b6160428cc4ed3e73c9ef2 (diff)
downloadaur-syndicate-plus-gog.tar.gz
use DOSBOX_CMD env var
Diffstat (limited to 'syndicate-plus-gog.sh')
-rw-r--r--syndicate-plus-gog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/syndicate-plus-gog.sh b/syndicate-plus-gog.sh
index 36b36d62050..ce24bbe0e0f 100644
--- a/syndicate-plus-gog.sh
+++ b/syndicate-plus-gog.sh
@@ -17,6 +17,7 @@ cat <<EOF
$script --windowed
$script --addon --client
$script --single --server
+ DOSBOX_CMD=dosbox-x $script
EOF
exit 0
}
@@ -26,6 +27,7 @@ popd() { builtin popd > /dev/null; }
INSTALL_DIR=/opt/syndicate-plus
HOME_DIR="$HOME"/.gog/syndicate-plus
+DOSBOX_CMD=${DOSBOX_CMD:-dosbox}
if which unionfs &> /dev/null; then
USE_UNIONFS=1
@@ -93,9 +95,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