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