mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2838] [MERGED] sceKernelAllocateDirectMemory hotfixes #3018
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#3018
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/2838
Author: @StevenMiller123
Created: 4/24/2025
Status: ✅ Merged
Merged: 4/24/2025
Merged by: @squidbus
Base:
main← Head:more-memory-fixes📝 Commits (2)
ae39cadUpdate memory.cpp2e175dbClean logic📊 Changes
1 file changed (+3 additions, -5 deletions)
View changed files
📝
src/core/memory.cpp(+3 -5)📄 Description
This should (hopefully) be the last time I'll need to PR fixes to this thing.
The main issue this addresses is that the end of an allocation doesn't need to be aligned to our alignment value. Fixing this should address the regression seen in https://github.com/shadps4-emu/shadps4-game-compatibility/issues/451
I've also cleaned up the logic slightly, as we should never need to check against search_start in the while loop. That code will never execute on a dmem area containing the search_start address, since the dmem area returned by FindDmemArea will contain search_start, and the while loop only triggers when we need to iterate past that mapping.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.