make CPU freezes take place immediately. fixes RaymanRR2 backgrounds occasionally getting cut in half.

This commit is contained in:
StapleButter 2017-04-12 17:53:15 +02:00
parent db20d7408e
commit 54eeb38d3d
1 changed files with 10 additions and 2 deletions

View File

@ -558,8 +558,16 @@ bool HaltInterrupted(u32 cpu)
void StopCPU(u32 cpu, u32 mask)
{
if (cpu) mask <<= 16;
CPUStop |= mask;
if (cpu)
{
CPUStop |= (mask << 16);
ARM7->Halt(2);
}
else
{
CPUStop |= mask;
ARM9->Halt(2);
}
}
void ResumeCPU(u32 cpu, u32 mask)