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;