fix: compare both md5 and sha1 when search for rom’s

This commit is contained in:
Michael Green
2023-02-18 23:43:44 +11:00
parent d18be38c3a
commit 78e8df1d8b

View File

@@ -130,6 +130,18 @@ foreach (string romFile in romPathContents)
{
// match
gameFound = true;
}
}
if (romObject.Sha1 != null)
{
if (md5Hash == romObject.Sha1.ToLowerInvariant())
{
// match
gameFound = true;
}
}
if (gameFound == true)
{
Console.WriteLine(romObject.Name);
gaseous_identifier.objects.RomSignatureObject.Game gameSignature = gameObject;
@@ -143,7 +155,6 @@ foreach (string romFile in romPathContents)
break;
}
}
}
if (gameFound == true) { break; }
}
if (gameFound == true) { break; }