updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / x-wing-collector-cdrom / x-wing.sh
blobbf07219d64d81b4ccf06f2823d5bf9a173ec9b65
1 #! /bin/bash
3 if [ ! -f "/usr/lib/libx-wing.sh" ]; then
4 echo "Can't load /usr/lib/libx-wing.sh" >&2
5 exit 1
6 else
7 . "/usr/lib/libx-wing.sh"
8 fi
10 readonly SCRIPT_NAME="${0}"
12 x-wing.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 \
21 if x-wing.firstRun; then
22 batchScript+='
23 install.exe
26 batchScript+="
27 bwing.exe $@
28 exit
31 SDL_VIDEO_X11_WMCLASS=$(basename "${SCRIPT_NAME%.*}") dosbox -conf "${DOSBOX_CONF}" -exit -c "${batchScript}"
34 x-wing.run x-wing.script.game "$@"