From 4a28fc86648ba83d8f3fcf0405c14dcb87fb85f6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 26 Oct 2022 06:46:19 -0400 Subject: [PATCH] Try to make sure the nvdaControllerClient file doesn't get wrongly removed in some cases. --- audiogame-manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index e5bdf04..c00b1fd 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -796,7 +796,7 @@ game_launcher() { fi pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & fi - if [[ ! -d "${dictPath}/dict" ]]; then + if [[ ! -d "${dictPath}/dict" ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; "${0%/*}/speech/clipboard_translator.sh" play.exe & fi