updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / rebelassault2 / rebelassault2.sh
bloba6a868520297d86a288886f80c65c26b3ff7ac99
1 #! /bin/bash
3 if [ ! -f "/usr/lib/librebelassault2.sh" ]; then
4 echo "Can't load /usr/lib/librebelassault2.sh" >&2
5 exit 1
6 else
7 . "/usr/lib/librebelassault2.sh"
8 fi
10 readonly SCRIPT_NAME="${0}"
12 rebelassault2.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 cd \\
20 rebel2.exe C: $@
21 exit
24 SDL_VIDEO_X11_WMCLASS=$(basename "${SCRIPT_NAME%.*}") dosbox -conf "${DOSBOX_CONF}" -exit -c "${batchScript}"
27 rebelassault2.run rebelassault2.script.game "$@"