"young indiana jones" problem fixed for old ppu, someone fix new one too
This commit is contained in:
parent
7cfd86f261
commit
1af53df1df
35
src/ppu.cpp
35
src/ppu.cpp
|
@ -790,8 +790,15 @@ static DECLFR(A2007)
|
||||||
if(!fceuindbg)
|
if(!fceuindbg)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if(INC32) RefreshAddr+=32;
|
if(scanline<240)
|
||||||
else RefreshAddr++;
|
Fixit1();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (INC32)
|
||||||
|
RefreshAddr+=32;
|
||||||
|
else
|
||||||
|
RefreshAddr++;
|
||||||
|
}
|
||||||
if(PPU_hook) PPU_hook(RefreshAddr&0x3fff);
|
if(PPU_hook) PPU_hook(RefreshAddr&0x3fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1333,25 +1340,19 @@ static void Fixit1(void)
|
||||||
{
|
{
|
||||||
uint32 rad=RefreshAddr;
|
uint32 rad=RefreshAddr;
|
||||||
|
|
||||||
if((rad&0x7000)==0x7000)
|
if((rad & 0x7000) == 0x7000)
|
||||||
{
|
{
|
||||||
rad^=0x7000;
|
rad ^= 0x7000;
|
||||||
if((rad&0x3E0)==0x3A0)
|
if((rad & 0x3E0) == 0x3A0)
|
||||||
{
|
rad ^= 0xBA0;
|
||||||
rad^=0x3A0;
|
else if((rad & 0x3E0) == 0x3e0)
|
||||||
rad^=0x800;
|
rad ^= 0x3e0;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
rad += 0x20;
|
||||||
if((rad&0x3E0)==0x3e0)
|
|
||||||
rad^=0x3e0;
|
|
||||||
else rad+=0x20;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rad+=0x1000;
|
rad += 0x1000;
|
||||||
RefreshAddr=rad;
|
RefreshAddr = rad;
|
||||||
//PPU_hook(RefreshAddr); //,-1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
|
/Release
|
||||||
|
/ipch
|
||||||
/vc10_bin_Debug
|
/vc10_bin_Debug
|
||||||
/vc10_fceux.vcxproj.user
|
/vc10_fceux.vcxproj.user
|
||||||
/vc10_obj_Debug
|
/vc10_obj_Debug
|
||||||
|
/vc10_obj_Release
|
||||||
/vc9_bin_Debug
|
/vc9_bin_Debug
|
||||||
/vc9_fceux.ncb
|
/vc9_fceux.ncb
|
||||||
/vc9_fceux.suo
|
/vc9_fceux.suo
|
||||||
|
|
Loading…
Reference in New Issue