Create hashfile and separated value subclasses

This commit is contained in:
Matt Nadareski
2024-03-12 22:03:18 -04:00
parent 91a0d4c8c8
commit 564e5d830a
3 changed files with 177 additions and 40 deletions

View File

@@ -81,7 +81,7 @@ namespace SabreTools.DatFiles
DatFormat.ArchiveDotOrg => new ArchiveDotOrg(baseDat),
DatFormat.AttractMode => new AttractMode(baseDat),
DatFormat.ClrMamePro => new ClrMamePro(baseDat, quotes),
DatFormat.CSV => new SeparatedValue(baseDat, ','),
DatFormat.CSV => new CommaSeparatedValue(baseDat),
DatFormat.DOSCenter => new DosCenter(baseDat),
DatFormat.EverdriveSMDB => new EverdriveSMDB(baseDat),
DatFormat.Listrom => new Listrom(baseDat),
@@ -91,19 +91,19 @@ namespace SabreTools.DatFiles
DatFormat.MissFile => new Missfile(baseDat),
DatFormat.OfflineList => new OfflineList(baseDat),
DatFormat.OpenMSX => new OpenMSX(baseDat),
DatFormat.RedumpMD5 => new Hashfile(baseDat, HashType.MD5),
DatFormat.RedumpSFV => new Hashfile(baseDat, HashType.CRC32),
DatFormat.RedumpSHA1 => new Hashfile(baseDat, HashType.SHA1),
DatFormat.RedumpSHA256 => new Hashfile(baseDat, HashType.SHA256),
DatFormat.RedumpSHA384 => new Hashfile(baseDat, HashType.SHA384),
DatFormat.RedumpSHA512 => new Hashfile(baseDat, HashType.SHA512),
DatFormat.RedumpSpamSum => new Hashfile(baseDat, HashType.SpamSum),
DatFormat.RedumpMD5 => new Md5File(baseDat),
DatFormat.RedumpSFV => new SfvFile(baseDat),
DatFormat.RedumpSHA1 => new Sha1File(baseDat),
DatFormat.RedumpSHA256 => new Sha256File(baseDat),
DatFormat.RedumpSHA384 => new Sha384File(baseDat),
DatFormat.RedumpSHA512 => new Sha512File(baseDat),
DatFormat.RedumpSpamSum => new SpamSumFile(baseDat),
DatFormat.RomCenter => new RomCenter(baseDat),
DatFormat.SabreJSON => new SabreJSON(baseDat),
DatFormat.SabreXML => new SabreXML(baseDat),
DatFormat.SoftwareList => new Formats.SoftwareList(baseDat),
DatFormat.SSV => new SeparatedValue(baseDat, ';'),
DatFormat.TSV => new SeparatedValue(baseDat, '\t'),
DatFormat.SSV => new SemicolonSeparatedValue(baseDat),
DatFormat.TSV => new TabSeparatedValue(baseDat),
// We use new-style Logiqx as a backup for generic DatFile
_ => new Logiqx(baseDat, false),