From 8952485f8bd659b756be0616aea5d5378d77099b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 8 Aug 2021 15:02:06 -0400 Subject: [PATCH 1/3] Added a -R flag for redownloading all packages associated with an installer. --- audiogame-manager.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 5beeff7..0025b32 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -307,6 +307,9 @@ download() { dest="${dest//%20/ }" # Remove the destination file if it is empty. test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null + if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then + rm -v "${cache}/${dest}" + fi # Skip if the item is in cache. test -e "${cache}/${dest}" && continue if ! wget -4 -O "${cache}/${dest}" "${i}" ; then @@ -818,7 +821,7 @@ gameList=( "Castaways 2" #"Chopper Challenge" "Christmas WhoopAss" - #"Constant Battle" + "Constant Battle" "Copter Mission" "Crazy Party" "Crazy Tennis" @@ -927,6 +930,7 @@ declare -A command=( [l:]="Launch given game without interactive audiogame-manager menu specified by its wine bottle." [N]="No cache, delete the installer after it has been extracted." [P]="Print a list of packages required by audiogame-manager." + [R]="Redownload. Removes old versions of packages from cache before installing." [r]="Remove a game. This will delete all game data." ) @@ -951,6 +955,7 @@ while getopts "${args}" i ; do l) game_launcher "${OPTARG}";; N) noCache="true";; P) checklist quiet;; + R) redownload="true";; r) game_removal;; esac done From 19a8a877e13c4b2c6eeeef373e8fcb11fbda164a Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 8 Aug 2021 16:10:16 -0400 Subject: [PATCH 2/3] Fixed, I think, the launcher for warsim. --- audiogame-manager.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 0025b32..392ac46 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -699,7 +699,9 @@ game_launcher() { exit 0 fi if [[ "$game" =~ warsim ]]; then - wine "$winePath\\$wineExec" + pushd "$(winepath "$winePath")" + wine "$wineExec" + popd exit 0 fi if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then From 11492ea5bfca98bb3627b3b9fb3e25f9670d4dfd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 8 Aug 2021 16:22:00 -0400 Subject: [PATCH 3/3] Commented out constant battle because it does not work. --- audiogame-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 392ac46..e956f87 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -823,7 +823,7 @@ gameList=( "Castaways 2" #"Chopper Challenge" "Christmas WhoopAss" - "Constant Battle" + #"Constant Battle" "Copter Mission" "Crazy Party" "Crazy Tennis" @@ -1440,7 +1440,7 @@ case "${game}" in ;; "Constant Battle") export winVer="win7" - install_wine_bottle speechsdk + install_wine_bottle cjkfonts speechsdk download "https://renovagames.com/bc/BC-Setup.exe" wine "${cache}/BC-Setup.exe" /silent #add_launcher "c:\Program Files\"