[DatTools, RomTools] Create method for cleaning file hashes

This commit is contained in:
Matt Nadareski
2016-06-20 15:43:08 -07:00
parent 8430b8de59
commit f5ebbb98dd
3 changed files with 41 additions and 84 deletions

View File

@@ -15,6 +15,11 @@ namespace SabreTools.Helper
public static string MD5Zero = "d41d8cd98f00b204e9800998ecf8427e";
public static string SHA1Zero = "da39a3ee5e6b4b0d3255bfef95601890afd80709";
// Hash string length constants
public static int CRCLength = 8;
public static int MD5Length = 32;
public static int SHA1Length = 40;
// Regex File Name Patterns
public static string DefaultPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.dat$";
public static string DefaultSpecialPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.xml$";