Work around for a missing start.exe command in wine 6.5. this should fix the problem for machines that have it, and work normally for machines that do not have the problem.

This commit is contained in:
Storm Dragon 2021-04-06 14:47:39 -04:00
parent f5851a8b43
commit 235f07c281

View File

@ -464,10 +464,12 @@ game_launcher() {
fi
fi
export WINEPREFIX="${HOME}/.local/wine/${game%|*}"
# Work around possible wrong path for start.exe
[[ -e "${WINEPREFIX}/drive_c/windows/system32/start.exe" ]] || ln -sr "${WINEPREFIX}/drive_c/windows/command/start.exe" "${WINEPREFIX}/drive_c/windows/system32/start.exe"
if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then
wine64 start /realtime /d "${winePath}" "$wineExec"
else
wine start /realtime /d "${winePath}" "$wineExec"
wine start /d "${winePath}" "$wineExec" /realtime
fi
fi
exit 0