From 789f5fe9c95e7ba9f3bfbd7cf4deb31eea135986 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Mon, 1 Dec 2025 03:57:42 +0500 Subject: [PATCH] update log parser for new sdl handler logs --- CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs | 2 +- CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs b/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs index 6ce9c1e8..ca5105f7 100644 --- a/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs +++ b/CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs @@ -245,7 +245,7 @@ internal partial class LogParser ["undub"] = UndubFlag(), ["CFBR_DLC"] = Ncaa14RevampedModFlag(), ["Input: Pad"] = InputDeviceGamepad(), - ["SDL: Found game controller"] = SdlControllerName(), + ["SDL: Found game"] = SdlControllerName(), ["cellSaveData: cellSaveDataGetListItem"] = SaveDataBeforeSegfault(), ["SYS: Failed to remove save data"] = FailedToRemoveSaveData(), ["Trophy: Failed to remove"] = FailedToRemoveTrophy(), diff --git a/CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs b/CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs index ef3f4e86..5e3a3e41 100644 --- a/CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs +++ b/CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs @@ -373,7 +373,7 @@ internal partial class LogParser private static partial Regex Ncaa14RevampedModFlag(); [GeneratedRegex(@"Input: Pad (?\d): device='(?(?!Null).+?)', handler=(?.+?), VID=.+?$", DefaultOptions)] private static partial Regex InputDeviceGamepad(); - [GeneratedRegex(@"Found game controller \d: .+ has_accel=(?.+?), has_gyro=(?[^\r\n]+?)\r?$", DefaultOptions)] + [GeneratedRegex(@"Found game (controller|pad) \d: .+ has_accel=(?.+?), has_gyro=(?[^\r\n]+?)\r?$", DefaultOptions)] private static partial Regex SdlControllerName(); [GeneratedRegex(@"Failed to remove save data.+: .+(?/dev_hdd0/.+) \(.+\)\r?$", DefaultOptions)] private static partial Regex FailedToRemoveSaveData();