Hopefully prevent breakage when launched with no internet connection.

This commit is contained in:
Storm Dragon 2020-11-30 16:01:28 -05:00
parent 26a6cdc596
commit fed76d2271

View File

@ -9,6 +9,8 @@ update() {
if file "${filePath}" | grep -q 'Bourne-Again shell script, ASCII text' ; then if file "${filePath}" | grep -q 'Bourne-Again shell script, ASCII text' ; then
return return
fi fi
# make sure the site can be reached
ping -c1 https://stormgames.wolfe.casa &> /dev/null || return
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/audiogame-manager | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/audiogame-manager | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
return return
fi fi
@ -384,6 +386,7 @@ gameList=(
"Easter Quest" "Easter Quest"
#"Entombed" #"Entombed"
"Fantasy Story II" "Fantasy Story II"
"Fartman"
"Finger Panic" "Finger Panic"
"Fuck That Bird" "Fuck That Bird"
"GMA Tank Commander" "GMA Tank Commander"
@ -532,6 +535,12 @@ case "${game}" in
unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/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" add_launcher "c:\Program Files\FS2_2.2_Windows_x86\FantasyStory2.exe"
;; ;;
"Fartman")
install_wine_bottle dx8vb vb6run
download "http://www.agarchive.net/games/bpc/fartman.exe"
wine "${cache}/fartman.exe" /silent
#add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.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"