From aefaf6c650c664a3266da6a2dc61b878c319b5a8 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 2 Feb 2020 14:26:20 -0330 Subject: [PATCH] Added '_' separator for regex when detecting display mode in filename. --- src/emucore/Console.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emucore/Console.cxx b/src/emucore/Console.cxx index 8e94c3739..0977386af 100644 --- a/src/emucore/Console.cxx +++ b/src/emucore/Console.cxx @@ -276,9 +276,9 @@ void Console::redetectFrameLayout() string Console::formatFromFilename() const { static const BSPF::array2D Pattern = {{ - { R"([ _\-(\[<]+NTSC[ -]?50)", "NTSC50" }, - { R"([ _\-(\[<]+PAL[ -]?60)", "PAL60" }, - { R"([ _\-(\[<]+SECAM[ -]?60)", "SECAM60" }, + { R"([ _\-(\[<]+NTSC[ _-]?50)", "NTSC50" }, + { R"([ _\-(\[<]+PAL[ _-]?60)", "PAL60" }, + { R"([ _\-(\[<]+SECAM[ _-]?60)", "SECAM60" }, { R"([ _\-(\[<]+NTSC[ _\-)\]>]?)", "NTSC" }, { R"([ _\-(\[<]+PAL[ _\-)\]>]?)", "PAL" }, { R"([ _\-(\[<]+SECAM[ _\-)\]>]?)", "SECAM" }