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.
This commit is contained in:
parent
e419d314b3
commit
671d6f3746
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue