From e51e3d9b72d4f9d7f1753f3e5b368bfa5630f031 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 1 Sep 2025 17:06:06 +0600 Subject: [PATCH] Make EDID text dump detection more robust to avoid false positives --- src/edid_parse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/edid_parse.cpp b/src/edid_parse.cpp index e62767ba5..3d74245ff 100644 --- a/src/edid_parse.cpp +++ b/src/edid_parse.cpp @@ -30,7 +30,6 @@ extern "C" { std::regex regexLib("^([a-f0-9]{32}|[a-f0-9 ]{47})$", std::regex_constants::egrep); FILE* file; - pclog("Parse %s\n", path); try { bool bom = ini_detect_bom(path); { @@ -54,7 +53,7 @@ extern "C" return false; } - if (str.find("edid-decode") == std::string::npos) { + if (str.find("edid-decode (hex):") == std::string::npos) { return false; } }