mirror of https://github.com/PCSX2/pcsx2.git
UI: Fix updater to ignore installer version
This commit is contained in:
parent
4e3d28f03f
commit
2f46e5a840
|
@ -264,6 +264,7 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
|
||||||
const QJsonObject asset_object(asset_value.toObject());
|
const QJsonObject asset_object(asset_value.toObject());
|
||||||
const QJsonArray additional_tags_array(asset_object["additionalTags"].toArray());
|
const QJsonArray additional_tags_array(asset_object["additionalTags"].toArray());
|
||||||
bool is_symbols = false;
|
bool is_symbols = false;
|
||||||
|
bool is_installer = false;
|
||||||
bool is_avx2 = false;
|
bool is_avx2 = false;
|
||||||
bool is_sse4 = false;
|
bool is_sse4 = false;
|
||||||
bool is_perfect_match = false;
|
bool is_perfect_match = false;
|
||||||
|
@ -276,6 +277,12 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
|
||||||
is_symbols = true;
|
is_symbols = true;
|
||||||
break;
|
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"))
|
else if (additional_tag_str == QStringLiteral("SSE4"))
|
||||||
{
|
{
|
||||||
is_sse4 = true;
|
is_sse4 = true;
|
||||||
|
@ -299,6 +306,11 @@ void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_installer)
|
||||||
|
{
|
||||||
|
// skip this asset
|
||||||
|
continue;
|
||||||
|
}
|
||||||
#ifdef _M_X86
|
#ifdef _M_X86
|
||||||
if (is_avx2 && cpuinfo_has_x86_avx2())
|
if (is_avx2 && cpuinfo_has_x86_avx2())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue