From 33800fc980e84ce7808521a2a0225618802bf83c Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Tue, 31 Jan 2023 17:37:10 -0500 Subject: [PATCH] Fixed major bug that would sometimes cause the wrong version of wine to be used. --- audiogame-manager.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 139b603..8b9ef9b 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -866,24 +866,8 @@ game_launcher() { fi if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & - # Figure out which wine version to use - if [[ -n "${version}" ]]; then - install_wine "${version}" "64" - wine="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/wine_64/${version}/bin/wine" - else - wine="$(command -v wine64)" - fi - $wine start /realtime /d "${winePath}" "$wineExec" - else - # Figure out which wine version to use - if [[ -n "${version}" ]]; then - install_wine "${version}" "32" - wine="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/wine_32/${version}/bin/wine" - else - wine="$(command -v wine)" - fi - $wine start /d "${winePath}" "$wineExec" /realtime fi + $wine start /d "${winePath}" "$wineExec" /realtime fi exit 0 }