mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 07:17:05 +00:00
change how UI copy/paste is detected
This commit is contained in:
parent
dceba72da7
commit
5eb5537cea
@ -33,6 +33,7 @@ namespace CompatBot.EventHandlers.LogParsing
|
||||
Extractors = new Dictionary<string, Regex>
|
||||
{
|
||||
["RPCS3 v"] = new Regex(@"(^|.+0:00:00\.000000)\s*(?<build_and_specs>RPCS3 [^\xC2\xB7]+?)\r?(\n\xC2\xB7|$)", DefaultSingleLineOptions),
|
||||
["0:00:00.000000"] = new Regex(@"(?<first_unicode_dot>·|\xC2\xB7).+\r?$", DefaultOptions),
|
||||
["Operating system:"] = LogParserResult.OsInfoInLog,
|
||||
["Physical device intialized"] = new Regex(@"Physical device intialized\. GPU=(?<vulkan_gpu>.+), driver=(?<vulkan_driver_version_raw>-?\d+)\r?$", DefaultOptions),
|
||||
["Found vulkan-compatible GPU:"] = new Regex(@"Found vulkan-compatible GPU: (?<vulkan_found_device>'(?<vulkan_compatible_device_name>.+)' running.+)\r?$", DefaultOptions),
|
||||
|
@ -13,7 +13,7 @@ namespace CompatBot.Utils.ResultFormatters
|
||||
private static void BuildInfoSection(DiscordEmbedBuilder builder, NameValueCollection items)
|
||||
{
|
||||
var systemInfo = items["build_and_specs"] ?? "";
|
||||
var valid = systemInfo.StartsWith("RPCS3") && systemInfo.Count(c => c == '\n') < 3;
|
||||
var valid = items["first_unicode_dot"] != null;
|
||||
if (!valid)
|
||||
{
|
||||
systemInfo = string.Join('\n', systemInfo.Split('\n', 4).Take(3)).Trim();
|
||||
|
Loading…
x
Reference in New Issue
Block a user