fix some settings check for official builds

apparently build version was changed to use proper branch name instead of HEAD
This commit is contained in:
13xforever 2023-03-08 15:20:15 +05:00
parent 7c14631412
commit 6edfb69eaf
No known key found for this signature in database
GPG Key ID: 2B2A36B482FE70C5
2 changed files with 5 additions and 4 deletions

View File

@ -38,7 +38,7 @@ internal static partial class LogParserResult
BuildFatalErrorSection(builder, items, multiItems, notes);
Version? buildVersion = null;
if (items["build_branch"] == "HEAD")
if (items["build_branch"] is "HEAD" or "master")
Version.TryParse(items["build_full_version"], out buildVersion);
var supportedGpu = string.IsNullOrEmpty(items["rsx_unsupported_gpu"]) && items["supported_gpu"] != DisabledMark;
var unsupportedGpuDriver = false;
@ -408,7 +408,8 @@ internal static partial class LogParserResult
var updateInfo = await CheckForUpdateAsync(items).ConfigureAwait(false);
var buildBranch = items["build_branch"]?.ToLowerInvariant();
if (updateInfo != null
&& (buildBranch is "master" or "head" or "spu_perf" || string.IsNullOrEmpty(buildBranch) && updateInfo.CurrentBuild != null))
&& (buildBranch is "master" or "head" or "spu_perf"
|| string.IsNullOrEmpty(buildBranch) && updateInfo.CurrentBuild != null))
{
string prefix = "⚠";
string timeDeltaStr;
@ -540,7 +541,7 @@ internal static partial class LogParserResult
}
else if (fatalError.Contains("RSX Decompiler Thread"))
{
if (items["build_branch"]?.ToLowerInvariant() == "head"
if (items["build_branch"] is "HEAD" or "master"
&& Version.TryParse(items["build_full_version"], out var v)
&& v >= DecompilerIssueStartVersion
&& v < DecompilerIssueEndVersion)

View File

@ -30,7 +30,7 @@ internal static partial class LogParserResult
items["has_tsx"] = hasTsx ? EnabledMark : DisabledMark;
items["has_tsx_fa"] = hasTsxFa ? EnabledMark : DisabledMark;
Version? buildVersion = null;
if (items["build_branch"] == "HEAD"
if (items["build_branch"] is "HEAD" or "master"
&& Version.TryParse(items["build_full_version"], out buildVersion)
&& buildVersion < TsxFaFixedVersion)
{