forked from vegastrike/Assets-Production
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs
28 lines (24 loc) · 830 Bytes
/
vs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# This is a small wrapper that lets VegaStrike - Upon the Coldest Sea
# run from seemingly anywhere
set -e
VEGASTRIKE_LOCAL_SHARE_DIR="/usr/local/share/vegastrike"
VEGASTRIKE_SHARE_DIR="/usr/share/vegastrike"
#Let's keep a log of the console
if [ -f ~/.vegastrike/console.log ]; then
mv -f ~/.vegastrike/console.log ~/.vegastrike/console.bak
fi
if [ -f ~/.vegastrike/console_err.log ]; then
mv -f ~/.vegastrike/console_err.log ~/.vegastrike/console_err.bak
fi
echo "Starting Vega Strike..."
echo ""
if [ -d "${VEGASTRIKE_LOCAL_SHARE_DIR}" ]; then
vegastrike -d"${VEGASTRIKE_LOCAL_SHARE_DIR}" "$1"
elif [ -d "${VEGASTRIKE_SHARE_DIR}" ]; then
vegastrike -d"${VEGASTRIKE_SHARE_DIR}" "$1"
else
echo "Unknown Game Asset Data Location."
echo "Do you have the game assets installed?"
exit 1
fi