From 671d6f374647cb5b3c8155b23e6ddcfb3d7e6992 Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 28 May 2015 05:17:03 -0500 Subject: [PATCH] Making assumptions about how big the buffer being passed to VdGetSystemCommandBuffer is. Seems to work and fix the divide by zero trap many games were making. --- src/xenia/kernel/xboxkrnl_video.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/kernel/xboxkrnl_video.cc b/src/xenia/kernel/xboxkrnl_video.cc index 4e7af316b..465df8838 100644 --- a/src/xenia/kernel/xboxkrnl_video.cc +++ b/src/xenia/kernel/xboxkrnl_video.cc @@ -277,6 +277,7 @@ SHIM_CALL VdGetSystemCommandBuffer_shim(PPCContext* ppc_state, XELOGD("VdGetSystemCommandBuffer(%.8X, %.8X)", p0_ptr, p1_ptr); + memset(SHIM_MEM_ADDR(p1_ptr), 0, 0x94); SHIM_SET_MEM_32(p0_ptr, 0xBEEF0000); SHIM_SET_MEM_32(p1_ptr, 0xBEEF0001); }