From 59dd9ae9cd3e923009ee7e5619b1d9174a3d48f6 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Wed, 19 Apr 2023 14:57:25 -0700 Subject: [PATCH] Fix crackling sound in the great toy robbery when you went farther north. --- audiogame-manager.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 7c99ada..b31d6f0 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -901,6 +901,9 @@ game_launcher() { # switch to wine64 for 64 bit prefix. [[ "${wine}" == "wine" ]] && export wine="wine64" fi + if [[ "$game" =~ the-great-toy-robbery ]] ; then + pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & + fi ${wine:-wine} start /d "${winePath}" "$wineExec" /realtime fi exit 0 @@ -2886,10 +2889,10 @@ EOF "The Great Toy Robbery") export bottle="l-works" export winVer="win7" - install_wine_bottle speechsdk - download "http://files.l-works.net/tgtrsetup_2.04.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle dsound directmusic + download "http://files.l-works.net/tgtrsetup_2.04.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" wine "${cache}/tgtrsetup_2.04.exe" /silent - find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; + find "${WINEPREFIX}/drive_c/Program Files/Lworks/The Great Toy Robbery" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; add_launcher "c:\Program Files\Lworks\The Great Toy Robbery\tgtr.exe" ;; "The Vale")