File blobwarsAttrition-wrapper.sh of Package blobwarsAttrition

#!/bin/sh
GAME_DATA_DIR=/usr/share/blobwarsAttrition

# check if required datafiles are present
if [ ! -f $GAME_DATA_DIR/data/atlas/atlas.json ]; then
  echo "**********************************************************"
  echo "You need datafiles to play the game! "
  echo "There are 2 options:"
  echo ""
  echo "*** 01 - Install Demo"
  echo "    -> zypper install blobwarsAttrition-data-demo"
  echo ""
  echo "*** 02 - Get Full version (you can buy it from"
  echo "    http://parallelrealities.co.uk/games/attrition/"
  echo "    -> copy the folder data/ into /usr/share/blobwarsAttrition/"
  echo "**********************************************************"
  exit 1
fi

GAME_EXECUTABLE=/usr/lib/blobwarsAttrition/blobwarsAttrition
exec $GAME_EXECUTABLE "$@"

openSUSE Build Service is sponsored by