shadPS4
shadPS4 copied to clipboard
Improved error handling in sceKernelAllocateDirectMemory
Some games, most notably the Call of Duty series of games, intentionally make sceKernelAllocateDirectMemory
calls that fail. To match hardware behavior, we should return ORBIS_KERNEL_ERROR_EAGAIN
instead of throwing an assert.
This should fix games that still hit Unable to find free direct memory area
asserts after https://github.com/shadps4-emu/shadPS4/pull/1896.
Credits to @red-prig and @raphaelthegreat for helping with the error cases.
This needs testing, as it could hide deeper issues in some games.