Added '_' separator for regex when detecting display mode in filename.

This commit is contained in:
Stephen Anthony 2020-02-02 14:26:20 -03:30
parent 4b91df5dee
commit fa1ea2f650
1 changed files with 3 additions and 3 deletions

View File

@ -276,9 +276,9 @@ void Console::redetectFrameLayout()
string Console::formatFromFilename() const string Console::formatFromFilename() const
{ {
static const BSPF::array2D<string, 6, 2> Pattern = {{ static const BSPF::array2D<string, 6, 2> Pattern = {{
{ R"([ _\-(\[<]+NTSC[ -]?50)", "NTSC50" }, { R"([ _\-(\[<]+NTSC[ _-]?50)", "NTSC50" },
{ R"([ _\-(\[<]+PAL[ -]?60)", "PAL60" }, { R"([ _\-(\[<]+PAL[ _-]?60)", "PAL60" },
{ R"([ _\-(\[<]+SECAM[ -]?60)", "SECAM60" }, { R"([ _\-(\[<]+SECAM[ _-]?60)", "SECAM60" },
{ R"([ _\-(\[<]+NTSC[ _\-)\]>]?)", "NTSC" }, { R"([ _\-(\[<]+NTSC[ _\-)\]>]?)", "NTSC" },
{ R"([ _\-(\[<]+PAL[ _\-)\]>]?)", "PAL" }, { R"([ _\-(\[<]+PAL[ _\-)\]>]?)", "PAL" },
{ R"([ _\-(\[<]+SECAM[ _\-)\]>]?)", "SECAM" } { R"([ _\-(\[<]+SECAM[ _\-)\]>]?)", "SECAM" }