Fix crackling sound in the great toy robbery when you went farther north.

This commit is contained in:
Michael Taboada 2023-04-19 14:57:25 -07:00
parent 7240f53cd5
commit 59dd9ae9cd

View File

@ -901,6 +901,9 @@ game_launcher() {
# switch to wine64 for 64 bit prefix. # switch to wine64 for 64 bit prefix.
[[ "${wine}" == "wine" ]] && export wine="wine64" [[ "${wine}" == "wine" ]] && export wine="wine64"
fi 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 ${wine:-wine} start /d "${winePath}" "$wineExec" /realtime
fi fi
exit 0 exit 0
@ -2886,10 +2889,10 @@ EOF
"The Great Toy Robbery") "The Great Toy Robbery")
export bottle="l-works" export bottle="l-works"
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle dsound directmusic
download "http://files.l-works.net/tgtrsetup_2.04.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" 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 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" add_launcher "c:\Program Files\Lworks\The Great Toy Robbery\tgtr.exe"
;; ;;
"The Vale") "The Vale")