Quick fix for the broken frame/vuskip by Nneeve. Doesn't restore it completely, but it'll do for now :)

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@627 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2009-01-24 00:13:49 +00:00 committed by Gregory Hainaut
parent b55bc0794f
commit 9be927fd7a
1 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,8 @@ static void DummyExecuteVU1Block(void)
VU1.vifRegs->stat &= ~4; // also reset the bit (grandia 3 works)
}
void (*recVU1EB)(), (*intVU1EB)();
void vu1MicroEnableSkip()
{
CpuVU1->ExecuteBlock = DummyExecuteVU1Block;
@ -47,7 +49,7 @@ void vu1MicroEnableSkip()
void vu1MicroDisableSkip()
{
CpuVU1->ExecuteBlock = CHECK_VU1REC ? recVU1.ExecuteBlock : intVU1.ExecuteBlock;
CpuVU1->ExecuteBlock = CHECK_VU1REC ? recVU1EB : intVU1EB;
}
bool vu1MicroIsSkipping()
@ -57,6 +59,9 @@ bool vu1MicroIsSkipping()
void vuMicroCpuReset()
{
recVU1EB = recVU1.ExecuteBlock;
intVU1EB = intVU1.ExecuteBlock;
CpuVU0 = CHECK_VU0REC ? &recVU0 : &intVU0;
CpuVU1 = CHECK_VU1REC ? &recVU1 : &intVU1;
CpuVU0->Reset();