diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 55235ae..903d702 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -2288,15 +2288,21 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" + dialog --backtitle "Audiogame manager" --yesno "If you do not have a full 32 bit gstreamer installation, the Swamp music can cause stuttering and crashes. Would you like to remove the music directory after installation?" -1 -1 --stdout + deleteMusic=$? install_wine_bottle dx8vb quartz corefonts vb6run speechsdk download "https://www.kaldobsky.com/audiogames/Swamp.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip" # make sure the latest version is installed. - if wget -O "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then - unzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPatch.zip" - fi + #if wget -O "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then + #nzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPatch.zip" + #fi wine 'c:\Program Files\swamp\checkup.exe' /verysilent #wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat' + # Delete music if requested. + if [[ $deleteMusic -eq 0 ]]; then + rm -frv "$WINEPREFIX/drive_c/Program Files/swamp/sounds/Music/" + fi add_launcher "c:\Program Files\swamp\Swamp.exe" ;; "Technoshock") diff --git a/game-scripts/swamp-update.sh b/game-scripts/swamp-update.sh index 0b704d0..e69f551 100755 --- a/game-scripts/swamp-update.sh +++ b/game-scripts/swamp-update.sh @@ -42,6 +42,9 @@ updateURL="https://www.kaldobsky.com/audiogames" updateFiles=("Swamp.zip") +dialog --backtitle "Audiogame manager" --yesno "If you do not have a full 32 bit gstreamer installation, the Swamp music can cause stuttering and crashes. Would you like to remove the music directory after installation?" -1 -1 --stdout +deleteMusic=$? + # Back up configuration files. for i in losers.txt muted.txt scriptkeys.txt keyconfig.ini ; do cp -v ~/".local/wine/aprone/drive_c/Program Files/swamp/${i}" ~/".local/wine/aprone/drive_c/Program Files/swamp/${i}.agm" @@ -56,5 +59,10 @@ for i in "${updateFiles[@]}" ; do unzip -o -d ~/".local/wine/aprone/drive_c/Program Files/swamp" "${cache}/${i}" done | dialog --progressbox "Updating Swamp, please wait..." -1 -1 + # Delete music if requested. + if [[ $deleteMusic -eq 0 ]]; then + rm -frv ~/".local/wine/aprone/drive_c/Program Files/swamp/sounds/Music/" + fi + exit 0