mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-05 11:11:47 -06:00
Place function table after the executable.
This commit is contained in:
@@ -1679,7 +1679,8 @@ static uint32_t CreateDevice(uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4,
|
||||
auto device = g_userHeap.AllocPhysical<GuestDevice>();
|
||||
memset(device, 0, sizeof(*device));
|
||||
|
||||
uint32_t functionOffset = 0x443344; // D3D
|
||||
// Append render state functions to the end of guest function table.
|
||||
uint32_t functionOffset = PPC_CODE_BASE + PPC_CODE_SIZE;
|
||||
g_memory.InsertFunction(functionOffset, HostToGuestFunction<SetRenderStateUnimplemented>);
|
||||
|
||||
for (size_t i = 0; i < std::size(device->setRenderStateFunctions); i++)
|
||||
|
||||
Reference in New Issue
Block a user