Fixed major bug that would sometimes cause the wrong version of wine to be used.

This commit is contained in:
stormdragon2976 2023-01-31 17:37:10 -05:00
parent e5253d7757
commit 33800fc980

View File

@ -866,25 +866,9 @@ game_launcher() {
fi fi
if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then
pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & 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 fi
$wine start /d "${winePath}" "$wineExec" /realtime $wine start /d "${winePath}" "$wineExec" /realtime
fi fi
fi
exit 0 exit 0
} }