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