From b5e41cbefe7445d3b958ae9c533169e3b2176b36 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Fri, 24 May 2024 10:47:22 +0500 Subject: [PATCH] add macOS version check --- .../LogParserResultFormatter.GeneralNotesSection.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs index f06adcf3..bd31a2c0 100644 --- a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs +++ b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs @@ -262,10 +262,13 @@ private static async Task BuildNotesSectionAsync(DiscordEmbedBuilder builder, Lo && Version.TryParse(items["os_version"], out var winVersion) && (winVersion is { Major: < 10 } or { Build: < 19045 or (> 20000 and < 22621) })) notes.Add("⚠️ Please [upgrade your Windows](https://www.microsoft.com/en-us/software-download/windows11) to currently supported version"); - else if (items["os_type"] is "MacOS" - && Version.TryParse(items["os_version"], out var macVersion) - && macVersion is {Major: 14, Minor: >=0 and <=2}) - notes.Add("❌️ Please update your OS to version 14.3 or newer"); + if (items["os_type"] is "MacOS" && Version.TryParse(items["os_version"], out var macVersion)) + { + if (macVersion is {Major: < 12}) + notes.Add("⚠️ Please [upgrade your macOS](https://support.apple.com/en-us/109033#latest) to currently supported version"); + else if (macVersion is { Major: 14, Minor: >= 0 and <= 2 }) + notes.Add("❌️ Please update your OS to version 14.3 or newer"); + } var gpuInfo = items["gpu_info"] ?? items["discrete_gpu_info"]; if (supportedGpu && !string.IsNullOrEmpty(gpuInfo))