fix mmc5 extended attributes in newppu

This commit is contained in:
zeromus 2017-04-29 22:26:25 +00:00
parent 1a05549ad2
commit f3afacc5aa
1 changed files with 9 additions and 0 deletions

View File

@ -235,6 +235,15 @@ uint8 FASTCALL mmc5_PPURead(uint32 A)
return ExRAM[A & 0x3FF];
}
}
if (MMC5HackCHRMode == 1)
{
if((A&0x3FF)>=0x3C0)
{
return ExRAM[NTRefreshAddr & 0x3ff];
}
}
return vnapage[(A >> 10) & 0x3][A & 0x3FF];
}
}