summarylogtreecommitdiffstats
path: root/blood-one-unit-whole-blood
blob: 62d0a6eab58d29cc4500bc7f54a2caa12779039d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/bash

# Select dosbox config
case $1 in
	single|server|settings|client|addon)	_bloodconf=$1;
						;;
	"")	_bloodconf=single;
		;;
	*)	echo "Possible options: single server settings client addon";
		break;
		;;
esac

gogdir="/opt/gog/blood-one-unit-whole-blood"
homedir="$HOME/.gog/blood-one-unit-whole-blood"
mkdir -p "$homedir"/{game,config/data}

unionfs -o cow,relaxed_permissions "$homedir/config=RW:$gogdir=RO" "$homedir/game"

dosbox -conf "$homedir/game/dosboxBlood.conf" \
	-conf "$homedir/game/dosboxBlood_$_bloodconf.conf"
fusermount -u "$homedir/game"
unset _bloodconf