updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / ascendancy-us / ascendancy.sh
blob1ad1b715a750da6006f37c8435d02c8b5e18305b
1 #! /bin/bash
3 if [ ! -f "/usr/lib/libascendancy.sh" ]; then
4 echo "Can't load /usr/lib/libascendancy.sh" >&2
5 exit 1
6 else
7 . "/usr/lib/libascendancy.sh"
8 fi
10 readonly SCRIPT_NAME="${0}"
12 ascendancy.script.game() {
13 local batchScript='
14 mount -u c
15 mount c "'"${APP_DIR}"'"
17 cd \
19 if ascendancy.firstRun; then
20 batchScript+='
21 uvconfig.exe -gen
22 setsound.exe
25 batchScript+="
26 ascend.exe $@
27 exit
30 SDL_VIDEO_X11_WMCLASS=$(basename "${SCRIPT_NAME%.*}") dosbox -conf "${DOSBOX_CONF}" -exit -c "${batchScript}"
33 ascendancy.run ascendancy.script.game "$@"