summarylogtreecommitdiffstats
path: root/codwaw.sh
blob: 5c89272cd7d5288fc5e4c3cfe80280f6885f3c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
export WINEPREFIX="$HOME"/.codwaw/wine
if [ ! -d "$HOME"/.codwaw ] ; then
   mkdir -p "$HOME"/.codwaw/wine
   wineboot -u
fi
cd /opt/codwaw
while getopts ":szmh" opt; do
  case ${opt} in
    s ) /usr/bin/wine CoDWaW.exe
      ;;
    z ) /usr/bin/wine CoDWaW.exe
      ;;
    m ) /usr/bin/wine CoDWaWmp.exe
      ;;
    h ) echo "Usage: codwaw [-z: zombies/singleplayer CoDWaW.exe (default)|-m: multiplayer CoDWaWmp.exe]"
      ;;
  esac
  exit
done
/usr/bin/wine CoDWaW.exe