Fix mapper 245 via an assert instead

This commit is contained in:
adelikat 2015-08-10 20:38:06 -04:00
parent 722cf9dec1
commit cf1b53c943
1 changed files with 2 additions and 8 deletions

View File

@ -14,6 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
switch (Cart.board_type)
{
case "MAPPER245":
AssertVram(8);
break;
default:
return false;
@ -74,14 +75,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
else
{
if (VRAM != null) // Bad dumps such as Chu Han Zheng Ba - The War Between Chu & Han (Ch) [b1] can get us into this situation without VRAM
{
return VRAM[addr];
}
else
{
return 0xFF;
}
return VRAM[addr];
}
}
else