diff --git a/home/stormux/.local/.functions/game_install_functions.sh b/home/stormux/.local/.functions/game_install_functions.sh index b8e85d5..f3534aa 100755 --- a/home/stormux/.local/.functions/game_install_functions.sh +++ b/home/stormux/.local/.functions/game_install_functions.sh @@ -172,6 +172,8 @@ ensure_wine_accessibility_files() { replace_wine_nvda_dlls() { local accessibilityDir="${HOME}/.local/share/stormux/wine-accessibility" + local scanRoots=("${HOME}/.local/games/Wine" "${WINEPREFIX:-}/drive_c") + local scanRoot local dllFile local dllName local replacement @@ -179,7 +181,10 @@ replace_wine_nvda_dlls() { [[ -d "${WINEPREFIX:-}" ]] || return 0 ensure_wine_accessibility_files - find -L "$WINEPREFIX" -type f -iname 'nvdaControllerClient*.dll' -print0 | while IFS= read -r -d '' dllFile; do + for scanRoot in "${scanRoots[@]}"; do + [[ -d "$scanRoot" ]] || continue + find "$scanRoot" -type f -iname 'nvdaControllerClient*.dll' -print0 + done | while IFS= read -r -d '' dllFile; do dllName="${dllFile##*/}" replacement=""