From 0f819028b0c577f0ea4bd5d772d92e697c9ae1a3 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Sun, 28 Oct 2018 16:46:47 +0500 Subject: [PATCH] Detect disc games installed as a pkg --- CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs | 1 + CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs b/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs index a2aefe13..8fdd51b5 100644 --- a/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs +++ b/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs @@ -41,6 +41,7 @@ namespace CompatBot.EventHandlers.LogParsing ["RSX:"] = new Regex(@"Physical device intialized\. GPU=(?.+), driver=(?-?\d+)\r?$", DefaultOptions), ["Serial:"] = new Regex(@"Serial: (?[A-z]{4}\d{5})\r?$", DefaultOptions), ["Title:"] = new Regex(@"Title: (?.*)?\r?$", DefaultOptions), + ["Category:"] = new Regex(@"Category: (?.*)?\r?$", DefaultOptions), ["LDR:"] = new Regex(@"(Path|Cache): ((?\w:/)|(?/[^/])).*?\r?$", DefaultOptions), ["custom config:"] = new Regex("custom config: (?.*?)\r?$", DefaultOptions), }, diff --git a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs index 1da3b38f..1a4eaf12 100644 --- a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs +++ b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs @@ -318,8 +318,10 @@ namespace CompatBot.Utils.ResultFormatters notes.AppendLine("Failed to boot the game, the dump might be encrypted or corrupted"); if (string.IsNullOrEmpty(items["ppu_decoder"]) || string.IsNullOrEmpty(items["renderer"])) notes.AppendLine("The log is empty, you need to run the game before uploading the log"); - if (!string.IsNullOrEmpty(items["hdd_game_path"]) && (items["serial"]?.StartsWith("BL", StringComparison.InvariantCultureIgnoreCase) ?? false)) + if (!string.IsNullOrEmpty(items["hdd_game_path"]) && !(items["serial"]?.StartsWith("NP", StringComparison.InvariantCultureIgnoreCase) ?? false)) notes.AppendLine($"Disc game inside `{items["hdd_game_path"]}`"); + if ((items["game_category"] == "HG") && !(items["serial"]?.StartsWith("NP", StringComparison.InvariantCultureIgnoreCase) ?? false)) + notes.AppendLine("Disc game installed as a PKG 🔨; please follow the quickstart guide"); if (!string.IsNullOrEmpty(items["native_ui_input"])) notes.AppendLine("Pad initialization problem detected; try disabling `Native UI`"); if (!string.IsNullOrEmpty(items["xaudio_init_error"]))