mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
Merge branch 'vnext'
This commit is contained in:
@@ -78,6 +78,7 @@ internal partial class LogParser
|
||||
["Accurate PUTLLUC:"] = PutLlucMode(),
|
||||
["Accurate RSX reservation access:"] = RsxReservationAccessMode(),
|
||||
["RSX FIFO Accuracy:"] = RsxFifoMode(),
|
||||
["RSX FIFO Fetch Accuracy:"] = RsxFifoMode(),
|
||||
["Debug Console Mode:"] = DebugConsoleMode(),
|
||||
["Lib Loader:"] = LibLoaderMode(),
|
||||
["Hook static functions:"] = HookStaticFunctions(),
|
||||
|
||||
@@ -103,7 +103,7 @@ internal partial class LogParser
|
||||
private static partial Regex PutLlucMode();
|
||||
[GeneratedRegex(@"Accurate RSX reservation access: (?<accurate_rsx_reservation>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex RsxReservationAccessMode();
|
||||
[GeneratedRegex(@"RSX FIFO Accuracy: (?<rsx_fifo_mode>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
[GeneratedRegex(@"RSX FIFO (Fetch )?Accuracy: (?<rsx_fifo_mode>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex RsxFifoMode();
|
||||
[GeneratedRegex(@"Debug Console Mode: (?<debug_console_mode>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex DebugConsoleMode();
|
||||
|
||||
@@ -82,7 +82,7 @@ internal sealed class MediaScreenshotMonitor
|
||||
var cnt = true;
|
||||
var prefix = $"[{item.msg.Id % 100:00}]";
|
||||
var ocrTextBuf = new StringBuilder($"OCR result of message <{item.msg.JumpLink}> ({confidence*100:0.00}%):").AppendLine();
|
||||
Config.Log.Debug($"{prefix} OCR result of message {item.msg.JumpLink} ({confidence*100:0.00}%):");
|
||||
Config.Log.Debug($"{prefix} OCR result of message {item.msg.JumpLink} from user {item.msg.Author?.Username} ({item.msg.Author?.Id}) ({confidence*100:0.00}%):");
|
||||
var duplicates = new HashSet<string>();
|
||||
ocrTextBuf.AppendLine(result.Sanitize());
|
||||
Config.Log.Debug($"{prefix} {result}");
|
||||
|
||||
Reference in New Issue
Block a user