summarylogtreecommitdiffstats
path: root/wreckfest.sh
blob: 16b5910b9b3581d6d1c0059e8fe96bd3763c5da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
export WINEPREFIX="$HOME"/.wreckfest/wine
if [ ! -d "$HOME"/.wreckfest ] ; then
   mkdir -p "$HOME"/.wreckfest/wine
   wineboot -u
   winetricks dxvk
fi
cd /opt/wreckfest
while getopts ":lmh" opt; do
  case ${opt} in
    l ) /usr/bin/wine Wreckfest.exe
      ;;
    m ) /usr/bin/wine Wreckfest_x64.exe
      ;;
    h ) echo "Usage: wreckfest [-l: legacy 32-bit Wreckfest.exe|-m: modern 64-bit Wreckfest_x64.exe (default)]"
      ;;
  esac
  exit
done
/usr/bin/wine Wreckfest_x64.exe