Detect disc games installed as a pkg

This commit is contained in:
13xforever 2018-10-28 16:46:47 +05:00
parent ed8a3b6ec4
commit 0f819028b0
2 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,7 @@ namespace CompatBot.EventHandlers.LogParsing
["RSX:"] = new Regex(@"Physical device intialized\. GPU=(?<vulkan_gpu>.+), driver=(?<vulkan_driver_version_raw>-?\d+)\r?$", DefaultOptions),
["Serial:"] = new Regex(@"Serial: (?<serial>[A-z]{4}\d{5})\r?$", DefaultOptions),
["Title:"] = new Regex(@"Title: (?<game_title>.*)?\r?$", DefaultOptions),
["Category:"] = new Regex(@"Category: (?<game_category>.*)?\r?$", DefaultOptions),
["LDR:"] = new Regex(@"(Path|Cache): ((?<win_path>\w:/)|(?<lin_path>/[^/])).*?\r?$", DefaultOptions),
["custom config:"] = new Regex("custom config: (?<custom_config>.*?)\r?$", DefaultOptions),
},

View File

@ -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"]))