mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 08:12:09 -05:00
On Windows, sceKernelMprotect accepted only the executable's image and threw "Memory protection of a foreign image is not supported" for every other image. Bundled title modules are relinked into DLLs named <module>.guest.prx, so a title that reprotects its own module pages failed. Dying Light 2's bundled libNRD does this at start-up (#1794). DoMprotect now also accepts images whose file name ends in .guest.prx, and registers their committed pages like the executable's. Other images are still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 lines
63 B
C++
2 lines
63 B
C++
extern "C" unsigned char guestMemoryModuleData[0x10000] = {1};
|