1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 20:47:45 +00:00

Don't try to update Wine/DXVK if we're using a custom version

In the event that GitHub is down, the game is actually unplayable as the
launcher doesn't allow you to skip updating these components (for now.)
To prevent this, you can use a custom wine you have installed but the
launcher was still erroneously updating it. Now it won't try to update
DXVK/Wine if you don't request it to, although I'm not sure about tying
DXVK to the wine option right now.
This commit is contained in:
Joshua Goins 2024-04-01 14:56:45 -04:00
parent dc01f3e214
commit ed9b4cfb76

View file

@ -38,11 +38,12 @@ QCoro::Task<bool> AssetUpdater::update()
Utility::createPathIfNeeded(m_wineDir);
Utility::createPathIfNeeded(m_dxvkDir);
if (!co_await checkRemoteCompatibilityToolVersion()) {
if (m_profile.wineType() == Profile::WineType::BuiltIn && !co_await checkRemoteCompatibilityToolVersion()) {
co_return false;
}
if (!co_await checkRemoteDxvkVersion()) {
// TODO: should DXVK be tied to this setting...?
if (m_profile.wineType() == Profile::WineType::BuiltIn && !co_await checkRemoteDxvkVersion()) {
co_return false;
}