Finally Fix Family School

This commit is contained in:
alyosha-tas 2016-09-21 16:30:10 -04:00 committed by GitHub
parent 3f191be372
commit c5025e9992
1 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
if (addr < 0x2000)
{
if (Cart.vram_size != 0)
return VRAM[addr & vram_mask];
return VRAM[Gen_CHR_Address(addr) & vram_mask];
else return VROM[Gen_CHR_Address(addr)];
}
else return base.ReadPPU(addr);
@ -302,7 +302,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
if (addr < 0x2000)
{
if (Cart.vram_size != 0)
VRAM[addr & vram_mask] = value;
VRAM[Gen_CHR_Address(addr) & vram_mask] = value;
}
else base.WritePPU(addr, value);
}