From 4b88d3a5325cc68b4119ad542a1676c424809e67 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 26 Nov 2020 15:31:34 -0500 Subject: [PATCH] Added games Lone Wolf and GMA Tank Commander. --- audiogame-manager.sh | 48 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 5fe102a..0178367 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -95,6 +95,11 @@ checklist() { errorList+=("Critical: ${i^} is not installed. You will not be able to install some games or their components.") fi done + if command -v gawk &> /dev/null ; then + echo "Gawk is installed." + else + errorList+=("Warning: gawk is not installed. Game removal with -r will not work.") + fi if command -v ocrdesktop &> /dev/null ; then echo "Ocrdesktop is installed." else @@ -241,7 +246,7 @@ game_removal() { # remove the game rm -rf "${HOME}/.local/wine/${game%|*}" # remove the launcher - awk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile" + gawk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile" echo "The selected game has been deleted." fi exit 0 @@ -380,11 +385,13 @@ gameList=( #"Entombed" "Finger Panic" "Fuck That Bird" + "GMA Tank Commander" "Hunter" "Kitchensinc Games" "Kringle Crash" "Light Cars" "Lockpick" + "Lone Wolf" "Manamon" "Manamon 2" "Oh Shit!" @@ -532,6 +539,28 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip" add_launcher "c:\Program Files\fuck that bird/game.exe" ;; + "GMA Tank Commander") + install_wine_bottle vb6run dx8vb speechsdk + download "http://www.gmagames.com/gtc120.exe" + wine "${cache}/gtc120.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + xdotool sleep 15 type --clearmodifiers --delay 100 "${USER^}" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "${HOSTNAME^}" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "na@na.na" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "uuuuuuu" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool key --clearmodifiers Return 2> /dev/null + xdotool sleep 10 key --clearmodifiers Return 2> /dev/null + wineserver -w + echo "To accurately set your information, edit the file:" + echo "${WINEPREFIX}/drive_c/Program\ Files/GMA\ Tank\ Commander/config.dat" + echo "The default country is US. The fields are:" + echo -e "\"Firstname Lastname\"\n\"Email address\"\n\"Country code\"" + add_launcher "c:\Program Files\GMA Tank Commander\gtc.exe" + ;; "Hunter") install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. @@ -606,6 +635,23 @@ case "${game}" in wine "${cache}/lockpicksetup.exe" /silent add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe" ;; + "Lone Wolf") + install_wine_bottle vb6run dx8vb speechsdk + download "http://www.gmagames.com/lw350.exe" + wine "${cache}/lw350.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "$USER" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "$HOSTNAME" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "na@na.na" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "uuuuuu" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool key --clearmodifiers Return 2> /dev/null + wineserver -w + add_launcher "c:\Program Files\Lone Wolf\lw.exe" + ;; "Manamon") export winVer="win7" install_wine_bottle speechsdk