Support ancient .NET in DatFiles

This commit is contained in:
Matt Nadareski
2024-02-28 22:54:56 -05:00
parent e7c45c1f50
commit 2145245c31
38 changed files with 780 additions and 258 deletions

View File

@@ -27,7 +27,7 @@ namespace SabreTools.DatFiles.Formats
List<DatItemField> missingFields = [];
// Check item name
if (string.IsNullOrWhiteSpace(datItem.GetName()))
if (string.IsNullOrEmpty(datItem.GetName()))
missingFields.Add(DatItemField.Name);
switch (datItem)
@@ -35,9 +35,9 @@ namespace SabreTools.DatFiles.Formats
case Rom rom:
if (!rom.SizeSpecified)
missingFields.Add(DatItemField.Size);
// if (string.IsNullOrWhiteSpace(rom.Date))
// if (string.IsNullOrEmpty(rom.Date))
// missingFields.Add(DatItemField.Date);
if (string.IsNullOrWhiteSpace(rom.CRC))
if (string.IsNullOrEmpty(rom.CRC))
missingFields.Add(DatItemField.CRC);
break;
}