Fixed bug in download function. Working on Eurofly.

This commit is contained in:
Storm Dragon 2021-01-03 20:14:03 -05:00
parent 6d2eedb0fe
commit df3f91ef66

View File

@ -248,10 +248,10 @@ download() {
for i in "${source[@]}" ; do
local dest="${i##*/}"
dest="${dest//%20/ }"
# Return if the game is in cache.
test -e "${cache}/${dest}" && return
# Skip if the item is in cache.
test -e "${cache}/${dest}" && continue
if ! wget -4 -O "${cache}/${dest}" "${i}" ; then
echo "Could not download game."
echo "Could not download..."
exit 1
fi
done
@ -527,6 +527,7 @@ gameList=(
"Duck Hunt"
"Easter Quest"
#"Entombed"
"Eurofly"
"Fantasy Story II"
#"Fartman"
"Finger Panic"
@ -734,6 +735,14 @@ case "${game}" in
wine "${cache}/EntombedSetup.exe" /silent
add_launcher "c:\Program Files\Entombed\Entombed.exe"
;;
"Eurofly")
export winVer="win7"
install_wine_bottle speechsdk
download "http://www.stefankiss.sk/programy/eurofly/Launcher_1.2.zip" "http://www.stefankiss.sk/programy/eurofly/Eurofly_2_ful_setup.exe"
wine "${cache}/Eurofly_2_ful_setup.exe" /silent
#unzip -d "$WINEPREFIX/drive_c/Program Files/Eurofly" "${cache}/Launcher_1.2.zip"
#add_launcher "c:\Program Files\Eurofly\launcher.exe"
;;
"Fantasy Story II")
export winVer="win10"
install_wine_bottle speechsdk