From a50d6dac60b49053fe6d240ff99d3001587bd045 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Fri, 1 Jul 2022 16:42:05 +0500 Subject: [PATCH] one more case for nvidia opengl adapter name --- CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs index f4cb9ca2..08f5c4b7 100644 --- a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs +++ b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs @@ -364,6 +364,7 @@ internal static partial class LogParserResult if (gpuName.EndsWith("(intel)", StringComparison.OrdinalIgnoreCase) || gpuName.EndsWith("(nvidia)", StringComparison.OrdinalIgnoreCase) + || gpuName.EndsWith(" corporation)", StringComparison.OrdinalIgnoreCase) || gpuName.EndsWith("(amd)", StringComparison.OrdinalIgnoreCase) || gpuName.EndsWith(" inc.)", StringComparison.OrdinalIgnoreCase) // ati || gpuName.EndsWith("(apple)", StringComparison.OrdinalIgnoreCase) @@ -372,8 +373,10 @@ internal static partial class LogParserResult { var idx = gpuName.LastIndexOf('('); if (idx > 0) - return gpuName[..idx].TrimEnd(); + gpuName = gpuName[..idx].TrimEnd(); } + if (gpuName.EndsWith("/PCIe/SSE2")) + gpuName = gpuName[..^10]; return gpuName; } if (items["vulkan_initialized_device"] != null)