mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Support ancient .NET in DatFiles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user