From fed76d2271288bf686898bb10edb60374982d774 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 30 Nov 2020 16:01:28 -0500 Subject: [PATCH] Hopefully prevent breakage when launched with no internet connection. --- audiogame-manager.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 3037c92..79e29c6 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -9,6 +9,8 @@ update() { if file "${filePath}" | grep -q 'Bourne-Again shell script, ASCII text' ; then return 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 return fi @@ -384,6 +386,7 @@ gameList=( "Easter Quest" #"Entombed" "Fantasy Story II" + "Fartman" "Finger Panic" "Fuck That Bird" "GMA Tank Commander" @@ -532,6 +535,12 @@ case "${game}" in 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" ;; + "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") install_wine_bottle dx8vb vb6run download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe"