From 74924a083e0954e286f419e512cb3ab37fb0379f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 4 Apr 2016 14:34:46 -0700 Subject: [PATCH] Add special mapping for Gizmondo, N-Gage --- DATabase/Core/Import.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DATabase/Core/Import.cs b/DATabase/Core/Import.cs index 1c897006..7769ef8e 100644 --- a/DATabase/Core/Import.cs +++ b/DATabase/Core/Import.cs @@ -47,6 +47,7 @@ namespace SabreTools private static string _defaultPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.dat$"; private static string _mamePattern = @"^(.*)\.xml$"; private static string _nointroPattern = @"^(.*?) \((\d{8}-\d{6})_CM\)\.dat$"; + private static string _noIntroSpecialPattern = @"(.*? - .*?) \((\d{8}\)\.dat"; private static string _redumpPattern = @"^(.*?) \((\d{8} \d{2}-\d{2}-\d{2})\)\.dat$"; private static string _tosecPattern = @"^(.*?) - .* \(TOSEC-v(\d{4}-\d{2}-\d{2})_CM\)\.dat$"; private static string _tosecSpecialPattern = @"^(.*? - .*? - .*?) - .* \(TOSEC-v(\d{4}-\d{2}-\d{2})_CM\)\.dat$"; @@ -123,6 +124,12 @@ namespace SabreTools fileinfo = Regex.Match(filename, _nointroPattern).Groups; type = DatType.NoIntro; } + // For N-Gage and Gizmondo only + else if (Regex.IsMatch(filename, _noIntroSpecialPattern)) + { + fileinfo = Regex.Match(filename, _nointroPattern).Groups; + type = DatType.NoIntro; + } else if (Regex.IsMatch(filename, _redumpPattern)) { fileinfo = Regex.Match(filename, _redumpPattern).Groups;