summarylogtreecommitdiffstats
path: root/aoe3.sh
blob: 75c522f65599d76d3b924dcd5b8c72d795ce3456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
export WINEPREFIX="$HOME"/.aoe3/wine
if [ ! -d "$HOME"/.aoe3 ] ; then
   mkdir -p "$HOME"/.aoe3/wine
   wineboot -u
   winetricks courier mfc42 d9vk
fi
cd /opt/aoe3
while getopts ":oxyh" opt; do
  case ${opt} in
    o ) /usr/bin/wine age3.exe +noIntroCinematics
      ;;
    x ) /usr/bin/wine age3x.exe +noIntroCinematics
      ;;
    y ) /usr/bin/wine age3y.exe +noIntroCinematics
      ;;
    h ) echo "Usage: aoe3 [-o: original age3.exe|-x warchiefs age3x.exe|-y asiandynasties age3y.exe (default)]"
      ;;
  esac
  exit
done
/usr/bin/wine age3y.exe +noIntroCinematics