Check for "null" literal string cases

This commit is contained in:
Matt Nadareski
2026-09-18 11:01:40 -04:00
parent 2cacaac9fd
commit 0b6af978ff
4 changed files with 11 additions and 5 deletions

View File

@@ -685,11 +685,11 @@ namespace SabreTools.Metadata.DatFiles
return rom;
// If the item has a SHA-1 but no size
if (rom.Size is null && rom.SHA1 is not null)
if (rom.Size is null && rom.SHA1 is not null && rom.SHA1 != "null")
return rom;
// If the item has a SHA-256 but no size
if (rom.Size is null && rom.SHA256 is not null)
if (rom.Size is null && rom.SHA256 is not null && rom.SHA256 != "null")
return rom;
// If the Rom has "null" characteristics, ensure all fields