[DatItem] Make SHA-1 mismatch more accurate

This commit is contained in:
Matt Nadareski
2017-02-03 01:06:13 -08:00
parent 7574da4ebd
commit 839ec457ee

View File

@@ -174,7 +174,7 @@ namespace SabreTools.Helper.Dats
// More wonderful SHA-1 logging that has to be done
if (_itemType == ItemType.Rom && lastItem.Type == ItemType.Rom)
{
if (((Rom)this).SHA1 == ((Rom)lastItem).SHA1 && ((Rom)this).Size != ((Rom)lastItem).Size)
if (!String.IsNullOrEmpty(((Rom)this).SHA1) && ((Rom)this).SHA1 == ((Rom)lastItem).SHA1 && ((Rom)this).Size != ((Rom)lastItem).Size)
{
logger.User("SHA-1 mismatch - Hash: " + ((Rom)this).SHA1);
}