Merged to master.

This commit is contained in:
Storm Dragon 2020-11-28 21:31:50 -05:00
parent 1bffc6f244
commit 8c2e37e135

View File

@ -95,6 +95,11 @@ checklist() {
errorList+=("Critical: ${i^} is not installed. You will not be able to install some games or their components.") errorList+=("Critical: ${i^} is not installed. You will not be able to install some games or their components.")
fi fi
done 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 if command -v ocrdesktop &> /dev/null ; then
echo "Ocrdesktop is installed." echo "Ocrdesktop is installed."
else else
@ -241,7 +246,7 @@ game_removal() {
# remove the game # remove the game
rm -rf "${HOME}/.local/wine/${game%|*}" rm -rf "${HOME}/.local/wine/${game%|*}"
# remove the launcher # 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." echo "The selected game has been deleted."
fi fi
exit 0 exit 0
@ -378,13 +383,16 @@ gameList=(
"Death on the Road" "Death on the Road"
"Easter Quest" "Easter Quest"
#"Entombed" #"Entombed"
"Fantasy Story II"
"Finger Panic" "Finger Panic"
"Fuck That Bird" "Fuck That Bird"
"GMA Tank Commander"
"Hunter" "Hunter"
"Kitchensinc Games" "Kitchensinc Games"
"Kringle Crash" "Kringle Crash"
"Light Cars" "Light Cars"
"Lockpick" "Lockpick"
"Lone Wolf"
"Manamon" "Manamon"
"Manamon 2" "Manamon 2"
"Oh Shit!" "Oh Shit!"
@ -517,6 +525,13 @@ case "${game}" in
wine "${cache}/EntombedUpdate.exe" /silent wine "${cache}/EntombedUpdate.exe" /silent
#add_launcher "c:\Program Files\MTGames\Easter Quest\easter.exe" #add_launcher "c:\Program Files\MTGames\Easter Quest\easter.exe"
;; ;;
"Fantasy Story II")
export winVer="win10"
install_wine_bottle speechsdk
download "https://stormgames.wolfe.casa/downloads/FS2_2.2_Windows_x86.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/FS2_2.2_Windows_x86.zip"
add_launcher "c:\Program Files\FS2_2.2_Windows_x86\FantasyStory2.exe"
;;
"Finger Panic") "Finger Panic")
install_wine_bottle dx8vb vb6run install_wine_bottle dx8vb vb6run
download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe" download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe"
@ -532,6 +547,28 @@ case "${game}" in
unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip"
add_launcher "c:\Program Files\fuck that bird/game.exe" 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") "Hunter")
install_wine_bottle vb6run dx8vb install_wine_bottle vb6run dx8vb
# FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang.
@ -606,6 +643,23 @@ case "${game}" in
wine "${cache}/lockpicksetup.exe" /silent wine "${cache}/lockpicksetup.exe" /silent
add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe" 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") "Manamon")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk