20 lines
1.1 KiB
Bash
20 lines
1.1 KiB
Bash
export WINEARCH="win32"
|
|
export winetricksSettings="vd=1024x768"
|
|
agm_yesno "Swamp Installation" "Swamp Installation" "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?"
|
|
deleteMusic=$?
|
|
download "https://www.kaldobsky.com/audiogames/Swamp.zip"
|
|
install_wine_bottle dx8vb quartz vb6run
|
|
install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip"
|
|
# make sure the latest version is installed.
|
|
if curl -L --output "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then
|
|
install_with_progress unzip "Installing Swamp patch..." -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 && Windows64bit.bat'
|
|
# Delete music if requested.
|
|
if [[ $deleteMusic -eq 0 ]]; then
|
|
rm -frv "$WINEPREFIX/drive_c/Program Files/swamp/sounds/Music/"
|
|
fi
|
|
rm -fv "$WINEPREFIX/drive_c/Program Files/swamp/maps/sub2"
|
|
add_launcher "c:\Program Files\swamp\Swamp.exe"
|