diff options
author | Constantin Nickel | 2019-06-07 05:06:53 +0200 |
---|---|---|
committer | Constantin Nickel | 2019-06-07 05:06:53 +0200 |
commit | 169089d5440c4517e88030ddbed5fa8108d423cc (patch) | |
tree | 1c68397f0b52beae489194e44f15db6f3dbb124b /fantasy-general-gog.sh | |
parent | 35d3d6b8b010412289bae3ec1448a05eb0fe23d3 (diff) | |
download | aur-fantasy-general-gog.tar.gz |
use DOSBOX_CMD env var
Diffstat (limited to 'fantasy-general-gog.sh')
-rw-r--r-- | fantasy-general-gog.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fantasy-general-gog.sh b/fantasy-general-gog.sh index 97972b16f18a..65f3ef3f6461 100644 --- a/fantasy-general-gog.sh +++ b/fantasy-general-gog.sh @@ -11,6 +11,7 @@ cat <<EOF $script --windowed $script --settings + DOSBOX_CMD=dosbox-x $script EOF exit 0 } @@ -20,6 +21,7 @@ popd() { builtin popd > /dev/null; } INSTALL_DIR=/opt/fantasy-general HOME_DIR="$HOME"/.gog/fantasy-general +DOSBOX_CMD=${DOSBOX_CMD:-dosbox} if which unionfs &> /dev/null; then USE_UNIONFS=1 @@ -63,9 +65,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 |