Skip to content

Commit

Permalink
UI: Fix updater to ignore installer version
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jul 13, 2024
1 parent 4e3d28f commit 2f46e5a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pcsx2-qt/AutoUpdaterDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
const QJsonObject asset_object(asset_value.toObject());
const QJsonArray additional_tags_array(asset_object["additionalTags"].toArray());
bool is_symbols = false;
bool is_installer = false;
bool is_avx2 = false;
bool is_sse4 = false;
bool is_perfect_match = false;
Expand All @@ -276,6 +277,12 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
is_symbols = true;
break;
}
if (additional_tag_str == QStringLiteral("installer"))
{
// we're not interested in installer download
is_installer = true;
break;
}
else if (additional_tag_str == QStringLiteral("SSE4"))
{
is_sse4 = true;
Expand All @@ -299,6 +306,11 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
continue;
}

if (is_installer)
{
// skip this asset
continue;
}
#ifdef _M_X86
if (is_avx2 && cpuinfo_has_x86_avx2())
{
Expand Down

0 comments on commit 2f46e5a

Please sign in to comment.