Do not crash on unaligned VRAM read access. Just return 0.

Fixes House of the Dead 2
This commit is contained in:
Flyinghead 2018-10-02 10:07:11 +02:00
parent 4b24d22385
commit 19b37b9957
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ T DYNACALL ReadMem_area0(u32 addr)
else if (likely((addr>= 0x005F8000) && (addr<=0x005F9FFF))) // :TA / PVR Core Reg.
{
//EMUERROR2("Read from area0_32 not implemented [TA / PVR Core Reg], addr=%x",addr);
verify(sz==4);
if (sz != 4)
// House of the Dead 2
return 0;
return (T)pvr_ReadReg(addr);
}
}