Prompt to remove Swamp music directory which can cause problems without a full 32 bit gstreamer installation.
This commit is contained in:
parent
b50f218365
commit
174ef9bd6c
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user