From e1609b143c25bd4cf73e04c866cf019fd0d5b7ce Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 18 Mar 2017 17:46:10 +0000 Subject: [PATCH] "fix" mmc5 irq timing thingy in new PPU, to help SDF ship intro, but I'm not 100% sure this is right. check for regressions in any other mmc5 splits. but i checked the CV3 menubar and it was broken before and it's fixed now, so I think this is good. --- trunk/src/ppu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/src/ppu.cpp b/trunk/src/ppu.cpp index 0edb95d0..31d0e23f 100644 --- a/trunk/src/ppu.cpp +++ b/trunk/src/ppu.cpp @@ -2124,7 +2124,10 @@ int FCEUX_PPU_Loop(int skip) { DEBUG(FCEUD_UpdateNTView(scanline = yp, 1)); } - if (MMC5Hack) MMC5_hb(yp); + //hack to fix SDF ship intro screen with split. is it right? + //well, if we didnt do this, we'd be passing in a negative scanline, so that's a sign something is fishy.. + if(sl != 0) + if (MMC5Hack) MMC5_hb(yp); //twiddle the oam buffers