NES: fix two regressions from previous commit; one broke all UNIF, and one broke some sachen boards

This commit is contained in:
goyuken 2014-04-09 19:39:04 +00:00
parent 58079850ae
commit 8c7b1da678
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertPrg(16, 32, 64);
AssertChr(8, 16, 32, 64);
AssertVram(0);
AssertWram(0);
Cart.wram_size = 0;
prg_mask = Cart.prg_size / 32 - 1;
chr_mask = Cart.chr_size / 8 - 1;
prg_addr_mask = Cart.prg_size * 1024 - 1;

View File

@ -444,10 +444,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
if (file.Length < 16) throw new Exception("Alleged NES rom too small to be anything useful");
if (file.Take(4).SequenceEqual(System.Text.Encoding.ASCII.GetBytes("UNIF")))
{
unif = new Unif(new MemoryStream(file));
LoadWriteLine("Found UNIF header:");
LoadWriteLine(unif.GetCartInfo());
LoadWriteLine("Since this is UNIF we can confidently parse PRG/CHR banks to hash.");
unif = new Unif(new MemoryStream(file));
hash_sha1 = unif.GetCartInfo().sha1;
hash_sha1_several.Add(hash_sha1);
LoadWriteLine("headerless rom hash: {0}", hash_sha1);