From af5931c214a03fafd51005aae86db156b1de31ce Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 26 Sep 2018 22:53:43 +0200 Subject: [PATCH] House of the Dead 2 does unaligned vram access --- core/hw/holly/sb_mem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/holly/sb_mem.cpp b/core/hw/holly/sb_mem.cpp index 8e83e71e6..c3704b8cb 100644 --- a/core/hw/holly/sb_mem.cpp +++ b/core/hw/holly/sb_mem.cpp @@ -163,7 +163,7 @@ T DYNACALL ReadMem_area0(u32 addr) } else if (likely((addr>= 0x005F8000) && (addr<=0x005F9FFF))) // :TA / PVR Core Reg. { - verify(sz==4); + if (sz != 4) return 0; // House of the Dead 2 return (T)pvr_ReadReg(addr); } }