diff --git a/home/stormux/.local/.functions/download.sh b/home/stormux/.local/.functions/download.sh index 4be3136..75d9c30 100755 --- a/home/stormux/.local/.functions/download.sh +++ b/home/stormux/.local/.functions/download.sh @@ -250,6 +250,7 @@ download() { dest="${sourceUrl##*/}" dest="${dest//%20/ }" dest="${dest#*\?filename=}" + dest="${dest#*\?file=}" dest="${dest%\?*}" [[ -s "${cache}/${dest}" ]] || rm -f "${cache:?}/${dest}" 2> /dev/null diff --git a/home/stormux/.local/.functions/install_game.sh b/home/stormux/.local/.functions/install_game.sh index 539ddcd..4c9a344 100755 --- a/home/stormux/.local/.functions/install_game.sh +++ b/home/stormux/.local/.functions/install_game.sh @@ -15,6 +15,7 @@ fi gameName="${installerPath##*/}" gameName="${gameName%.sh}" +game="${game:-${gameName}}" installPath="${installPath:-${HOME}/.local/games}" cache="${cache:-${XDG_CACHE_HOME:-${HOME}/.cache}/stormux-game-install}" launchRoot="${launchRoot:-${HOME}/.local/.launch}" @@ -22,7 +23,7 @@ redownload="${redownload:-false}" ipfsGateway="${ipfsGateway:-https://ipfs.stormux.org}" fex="${fex:-}" -export installPath cache launchRoot redownload ipfsGateway fex gameName +export installPath cache launchRoot redownload ipfsGateway fex gameName game safe_log_name() { local name="$1" diff --git a/home/stormux/.local/.install/Arcade/Judgement Day.sh b/home/stormux/.local/.install/Arcade/Judgement Day.sh index 9158086..8d883dd 100644 --- a/home/stormux/.local/.install/Arcade/Judgement Day.sh +++ b/home/stormux/.local/.install/Arcade/Judgement Day.sh @@ -1,4 +1,5 @@ -download "http://files.l-works.net/judgmentdayfullsetup.exe" +# shellcheck shell=bash disable=SC2154 # cache is set by audiogame-manager +download "https://www.l-works.net/files/judgmentdayfullsetup.exe" install_wine_bottle vb6run dx8vb quartz wine "${cache}/judgmentdayfullsetup.exe" /silent cat << EOF > /tmp/judgementday.reg