detect game modifications

This commit is contained in:
13xforever 2019-08-08 19:48:20 +05:00
parent dbf06eeb9d
commit 86cc9a391e
2 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,7 @@ namespace CompatBot.EventHandlers.LogParsing
["Could not enqueue"] = new Regex(@"cellAudio: Could not enqueue buffer onto audio backend(?<enqueue_buffer_error>.).*\r?$", DefaultOptions),
["Failed to bind device"] = new Regex(@"Failed to bind device (?<failed_pad>.+) to handler (?<failed_pad_handler>.+).*\r?$", DefaultOptions),
["{PPU["] = new Regex(@"{PPU\[.+\]} (?<syscall_module>[^ :]+)( TODO)?: (?<syscall_name>[^ :]+)\(.*\r?$", DefaultOptions),
["undub"] = new Regex(@"(\b|_)(?<game_mod>undub)(\b|_)", DefaultOptions | RegexOptions.IgnoreCase),
},
OnNewLineAsync = LimitedPiracyCheckAsync,
OnSectionEnd = MarkAsCompleteAndReset,

View File

@ -393,6 +393,9 @@ namespace CompatBot.Utils.ResultFormatters
|| !string.IsNullOrEmpty(items["fw_missing_something"]))
notes.Add("❌ PS3 firmware is missing or corrupted");
if (items["game_mod"] is string mod)
notes.Add($" Game files modification present: `{mod.Trim(10)}`");
var updateInfo = await CheckForUpdateAsync(items).ConfigureAwait(false);
var buildBranch = items["build_branch"]?.ToLowerInvariant();
if (updateInfo != null