updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tiefighter-collector-cdrom / tiefighter.sh
blobb76a45824b6355f34e7911b9268855134830e3a9
1 #! /bin/bash
3 if [ ! -f "/usr/lib/libtiefighter.sh" ]; then
4 echo "Can't load /usr/lib/libtiefighter.sh" >&2
5 exit 1
6 else
7 . "/usr/lib/libtiefighter.sh"
8 fi
10 readonly SCRIPT_NAME="${0}"
12 tiefighter.script.game() {
13 local batchScript='
14 mount -u c
15 mount c "'"${APP_DIR}"'"
16 mount -u d
17 mount d "'"${APP_DISK}"'" -t cdrom
19 if tiefighter.firstRun; then
20 batchScript+='
22 cd \
23 imuse.exe
26 batchScript+="
28 cd \\
29 tie.exe $@
30 exit
33 SDL_VIDEO_X11_WMCLASS=$(basename "${SCRIPT_NAME%.*}") dosbox -conf "${DOSBOX_CONF}" -exit -c "${batchScript}"
36 tiefighter.run tiefighter.script.game "$@"