mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #3029] [MERGED] Core: Protect fixes #3160
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3029
Author: @StevenMiller123
Created: 6/3/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @georgemoralis
Base:
main← Head:protect-fix📝 Commits (3)
5307e9dSwap do-while to while49d1486Move prot validation outside loopad3a0adAdd logging for protect calls📊 Changes
2 files changed (+21 additions, -15 deletions)
View changed files
📝
src/core/libraries/kernel/memory.cpp(+4 -0)📝
src/core/memory.cpp(+17 -15)📄 Description
This PR makes slight adjustments to our
sceKernelMprotectandsceKernelMtypeprotectimplementations, by refactoring the code for better readability, properly handling calls with size = 0, and logging additional information for debugging purposes.This fixes a memory assert seen in updated versions of RESIDENT EVIL 2 (CUSA09193).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.