From 19b37b99578854649fc050241a2836719745fa8d Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Tue, 2 Oct 2018 10:07:11 +0200 Subject: [PATCH] Do not crash on unaligned VRAM read access. Just return 0. Fixes House of the Dead 2 --- core/hw/holly/sb_mem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hw/holly/sb_mem.cpp b/core/hw/holly/sb_mem.cpp index 47b501fb9..54a7fd63a 100644 --- a/core/hw/holly/sb_mem.cpp +++ b/core/hw/holly/sb_mem.cpp @@ -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); } }