03a8bd
#!/bin/sh
03a8bd
3e011f
. /usr/share/opengl-games-utils/opengl-game-functions.sh
3e011f
3e011f
checkDriOK vegastrike
3e011f
03a8bd
VSDATADIR=/usr/share/vegastrike
03a8bd
VERSION=`head -1 $VSDATADIR/Version.txt`
03a8bd
03a8bd
mkdir -p $HOME/$VERSION
03a8bd
cd $HOME/$VERSION
03a8bd
if [ \! -e ~/$VERSION/setup.config ]; then
03a8bd
  cp $VSDATADIR/setup.config .
03a8bd
fi
03a8bd
if [ \! -e ~/$VERSION/vegastrike.config ]; then
03a8bd
  cp $VSDATADIR/vegastrike.config .
03a8bd
  vssetup
03a8bd
fi
cf4872
exec vegastrike "$@" > log 2>&1