diff options
author | John-Michael Mulesa | 2021-09-22 17:07:49 +1000 |
---|---|---|
committer | John-Michael Mulesa | 2021-09-22 17:07:49 +1000 |
commit | e38358645c8417ff0ba50a037fab6b81343fe9ae (patch) | |
tree | 90da45f5ca01fd0503614c8468ef756baaa6d948 /codwaw.sh | |
download | aur-e38358645c8417ff0ba50a037fab6b81343fe9ae.tar.gz |
Initial commit.
Diffstat (limited to 'codwaw.sh')
-rw-r--r-- | codwaw.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/codwaw.sh b/codwaw.sh new file mode 100644 index 000000000000..5c89272cd7d5 --- /dev/null +++ b/codwaw.sh @@ -0,0 +1,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 |