From 59c73ee61671d204f922a36728d78ef2c44b33da Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 8 Feb 2022 12:57:27 -0500 Subject: [PATCH] Enable winetricks reporting by default so that packages that make audiogames work get reported to the winetricks maintainer. --- audiogame-manager.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index a897a38..ff5d0ce 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -498,6 +498,10 @@ echo "Loading documentation, please wait..." } winetricks() { + # Report used packages to the winetricks maintainer so he knows they are being used. + if ! [[ -e "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" ]]; then + echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" + fi # Download or update agm's copy of winetricks if [[ ! -e "${cache}/winetricks" ]]; then checkWinetricksUpdate="true" @@ -1593,7 +1597,7 @@ case "${game}" in "Crime Hunter") export WINEARCH=win64 export winVer="win7" - install_wine_bottle + install_wine_bottle sapi download "http://masonasons.me/softs/CH2.0Win.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll" unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \;