From 422ca3036712536f9822fbd3571a44bcff07ced7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 20 Aug 2022 23:51:12 -0400 Subject: [PATCH] First pass at adding nvda2speech for 64 bit games. Probably bugs, so watch out. --- audiogame-manager.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index cae1290..0a198a1 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -563,8 +563,12 @@ install_wine_bottle() { wine msiexec /i z:"$monoPath" /quiet wine msiexec /i z:"$geckoPath" /quiet if [[ "${*}" =~ speechsdk ]] || [[ "${WINEARCH}" == "win64" ]]; then + download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd" install_rhvoice fi + if [[ "${WINEARCH}" == "win64" ]] && [[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" ]]; then + cp "${cache}/nvda2speechd" "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" + fi winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}; } | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 } @@ -783,6 +787,7 @@ game_launcher() { exit 0 fi if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then + pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & wine64 start /realtime /d "${winePath}" "$wineExec" else wine start /d "${winePath}" "$wineExec" /realtime @@ -1629,6 +1634,7 @@ case "${game}" in ;; "Code Dungeon") get_installer "codedungeon-win-64.zip" "https://stealcase.itch.io/codedungeon" + download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" export WINEARCH=win64 export winVer="win8" install_wine_bottle @@ -1636,6 +1642,7 @@ case "${game}" in # Weird work around to get keyboard working. winetricks -q usetakefocus=y winetricks -q usetakefocus=n + find "${WINEPREFIX}" -type f -name 'nvdaControllerClient.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \; add_launcher "c:\Program Files\code-dungeon\Code Dungeon.exe" ;; "Copter Mission")