mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-31 23:19:44 +08:00
d7f6e3f578
The "2" variant of sceKernelMapDirectMemory was unimplemented, so titles that call it (seen in Gex Trilogy) got an unresolved import that returned an error the guest then used as a mapped address. v2 inserts a memoryType argument ahead of v1's protection, shifting the remaining arguments down one register and pushing alignment onto the stack. Extract v1's body into a shared MapDirectMemoryCore and route both exports through it; v2 reads its shifted arguments and the stack alignment and accepts the memoryType (which only selects cache/GPU attributes this HLE does not model per mapping, so it does not affect placement).