Commit Graph
2 Commits
Author SHA1 Message Date
milescovielloandClaude Opus 5.5 9aaf5ee0bf fix: clear GCC warnings in the AGC driver and two tests
A Release build with GCC warned in these three places:

- SubmissionCapture's unknown-queue message needs up to 67 bytes and
  was formatted into 64, so queue numbers above 0xfffff lost its end.
  The buffer is 96 bytes.
- ConstantPhi.cpp ignored IrBuilder::Emit's nodiscard result.
- GuestMemoryModule.cpp both initialized and declared guestMemoryModuleData
  extern. The definition is now inside an extern "C" block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 09:20:35 +00:00
LexroidandClaude Opus 5.5 9f1d7b0516 fix(libkernel): reprotect bundled guest module images on Windows
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 <[email protected]>
2026-10-10 10:23:42 +02:00