Mapper 245 - don't throw an exception on a particular bad dump shenanigans

This commit is contained in:
adelikat 2015-08-10 19:43:27 -04:00
parent 6dfc43a0ed
commit 722cf9dec1
1 changed files with 8 additions and 1 deletions

View File

@ -74,7 +74,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
else
{
return VRAM[addr];
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;
}
}
}
else