blob: fd12d363597146e11b362d477441733bc634d0b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
export WINEPREFIX="$HOME"/.codaw/wine
if [ ! -d "$HOME"/.codaw ] ; then
mkdir -p "$HOME"/.codaw/wine
wineboot -u
winetricks dxvk
fi
cd /opt/codaw
while getopts ":dszmh" opt; do
case ${opt} in
d ) /usr/bin/wine s1x.exe -dedicated
;;
s ) /usr/bin/wine s1x.exe -survival
;;
z ) /usr/bin/wine s1x.exe -zombies
;;
m ) /usr/bin/wine s1x.exe -multiplayer
;;
h ) echo "Usage: codaw [-z: zombies|-m: multiplayer (default)|-s: survival|-d: dedicated]"
;;
esac
exit
done
/usr/bin/wine s1x.exe -multiplayer
|