mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add special mapping for Gizmondo, N-Gage
This commit is contained in:
@@ -47,6 +47,7 @@ namespace SabreTools
|
|||||||
private static string _defaultPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.dat$";
|
private static string _defaultPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.dat$";
|
||||||
private static string _mamePattern = @"^(.*)\.xml$";
|
private static string _mamePattern = @"^(.*)\.xml$";
|
||||||
private static string _nointroPattern = @"^(.*?) \((\d{8}-\d{6})_CM\)\.dat$";
|
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 _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 _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$";
|
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;
|
fileinfo = Regex.Match(filename, _nointroPattern).Groups;
|
||||||
type = DatType.NoIntro;
|
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))
|
else if (Regex.IsMatch(filename, _redumpPattern))
|
||||||
{
|
{
|
||||||
fileinfo = Regex.Match(filename, _redumpPattern).Groups;
|
fileinfo = Regex.Match(filename, _redumpPattern).Groups;
|
||||||
|
|||||||
Reference in New Issue
Block a user