summarylogtreecommitdiffstats
path: root/codghosts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'codghosts.sh')
-rw-r--r--codghosts.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/codghosts.sh b/codghosts.sh
new file mode 100644
index 000000000000..2bf184600e0b
--- /dev/null
+++ b/codghosts.sh
@@ -0,0 +1,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