updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / darkforces / darkforces-config.sh
blobb6028c73aa0e99a5a43ca065792692ec0bb4b733
1 #! /bin/bash
3 if [ ! -f "/usr/lib/libdarkforces.sh" ]; then
4 echo "Can't load /usr/lib/libdarkforces.sh" >&2
5 exit 1
6 else
7 . "/usr/lib/libdarkforces.sh"
8 fi
10 readonly SCRIPT_NAME="${0}"
12 darkforces.script.config() {
13 local batchScript="
14 mount -u c
15 mount c \"${APP_DIR}\"
17 cd \\
18 rename cd.id cd.bak
19 cd \\dark
20 install.exe $@
21 cd \\
22 rename cd.bak cd.id
23 exit
25 SDL_VIDEO_X11_WMCLASS=$(basename "${SCRIPT_NAME%.*}") dosbox -conf "${DOSBOX_CONF}" -exit -c "${batchScript}"
28 darkforces.run darkforces.script.config "$@"