Fixed major bug that would sometimes cause the wrong version of wine to be used.
This commit is contained in:
parent
e5253d7757
commit
33800fc980
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user