fix potential issues with 32bit GPU writes

This commit is contained in:
Arisotura 2022-04-10 15:11:30 +02:00
parent 0294bcb5f2
commit 529a690089
1 changed files with 24 additions and 23 deletions

View File

@ -532,8 +532,8 @@ void Unit::Write32(u32 addr, u32 val)
return;
}
if (!Enabled) return;
if (Enabled)
{
switch (addr & 0x00000FFF)
{
case 0x028:
@ -558,6 +558,7 @@ void Unit::Write32(u32 addr, u32 val)
if (GPU::VCount < 192) BGYRefInternal[1] = BGYRef[1];
return;
}
}
Write16(addr, val&0xFFFF);
Write16(addr+2, val>>16);