From e0729f8821d6051d6d5a522c0a75c6f14766f269 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 9 Sep 2021 20:04:07 -0400 Subject: [PATCH] Updated golden crayon installer and update script. --- audiogame-manager.sh | 2 +- game-scripts/golden-crayon-update.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index f420aa2..e28fc78 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1642,7 +1642,7 @@ case "${game}" in install_wine_bottle speechsdk download "http://tunmi13.ddns.net/projects/golden_crayon.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/golden_crayon.zip" - find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; + find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\\golden_crayon\gc.exe" ;; "GMA Tank Commander") diff --git a/game-scripts/golden-crayon-update.sh b/game-scripts/golden-crayon-update.sh index 27c7fcf..fb648f0 100755 --- a/game-scripts/golden-crayon-update.sh +++ b/game-scripts/golden-crayon-update.sh @@ -39,10 +39,12 @@ # Works which are defined in the CPAL as a work which combines Covered Code # or portions thereof with code not governed by the terms of the CPAL. +cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache" pushd ~/.local/wine/golden-crayon/drive_c/Program\ Files/golden_crayon/ unzip golden_crayon.zip rm -r libs/ mv golden_crayon/* . +find ~/.local/wine/golden-crayon/ -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; find ~/.local/wine/golden-crayon/ -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; rmdir golden_crayon/ popd