blob: 2bf184600e0bc3d78e44045b29c1f5bf1a59ed67 (
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"/.codghosts/wine
if [ ! -d "$HOME"/.codghosts ] ; then
mkdir -p "$HOME"/.codghosts/wine
wineboot -u
winetricks dxvk
fi
cd /opt/codghosts
while getopts ":dmh" opt; do
case ${opt} in
d ) /usr/bin/wine iw6x.exe -dedicated
;;
m ) /usr/bin/wine iw6x.exe -multiplayer
;;
h ) echo "Usage: codaw [-m: multiplayer (default)|-d: dedicated]"
;;
esac
exit
done
/usr/bin/wine iw6x.exe -multiplayer
|