fix: compare both md5 and sha1 when search for rom’s
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user