Fix BootGodDB lookup being completely broken in quicknes

- closes #3703

Presumably broken since e38726db50.
This commit is contained in:
Morilli 2024-08-22 23:13:43 +02:00
parent f010d6f802
commit 8c9587e00b
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
currCart = new CartInfo();
currCart.System = xmlReader.GetAttribute("system");
currCart.Sha1 = $"SHA1:{xmlReader.GetAttribute("sha1")}";
currCart.Sha1 = $"{SHA1Checksum.PREFIX}:{xmlReader.GetAttribute("sha1")}";
currCart.Name = currName;
state = 2;
}

View File

@ -285,7 +285,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
throw new UnsupportedGameException("Game known to not be playable in this core");
}
sha1 = "sha1:" + sha1; // huh?
sha1 = $"{SHA1Checksum.PREFIX}:{sha1}";
var carts = BootGodDb.Identify(sha1);
if (carts.Count > 0)