mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #250] [MERGED] Misc implementations and fixes. #1423
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#1423
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/250
Author: @polybiusproxy
Created: 7/6/2024
Status: ✅ Merged
Merged: 7/11/2024
Merged by: @raphaelthegreat
Base:
main← Head:filesystem📝 Commits (10+)
ddeff9bImplementsceKernelFtruncateandsceKernelUnlink.45cf1bcRemove unused variable.ec48aa8Merge branch 'shadps4-emu:main' into filesystem27b87ebImplementsceKernelReserveVirtualRange, misc fixesff4584cMerge branch 'shadps4-emu:main' into filesystem7a83b74FixsceKernelReserveVirtualRange.e531c77Add TODO on reservec0f2f25Replace comment with assert.9f8c674Add missing copyright headerbc8e95dAddUNREACHABLEforIOFile::Unlink.📊 Changes
15 files changed (+331 additions, -19 deletions)
View changed files
📝
CMakeLists.txt(+2 -0)📝
src/common/io_file.cpp(+35 -2)📝
src/common/io_file.h(+2 -0)➕
src/common/ntapi.cpp(+20 -0)➕
src/common/ntapi.h(+124 -0)📝
src/core/address_space.cpp(+17 -2)📝
src/core/address_space.h(+1 -1)📝
src/core/libraries/kernel/file_system.cpp(+46 -1)📝
src/core/libraries/kernel/libkernel.cpp(+1 -0)📝
src/core/libraries/kernel/memory_management.cpp(+27 -0)📝
src/core/libraries/kernel/memory_management.h(+1 -0)📝
src/core/libraries/kernel/time_management.cpp(+2 -4)📝
src/core/memory.cpp(+46 -9)📝
src/core/memory.h(+3 -0)📝
src/emulator.cpp(+4 -0)📄 Description
This PR implements both the
sceKernelFtruncateandsceKernelUnlinkfunctions fromlibkernel.sprx.As seen on games using PSPHD (Sony's PSP in-house emulator) - tested with CUSA05289.
PSPHD won't boot due to its start-up routine; at launch, it will try to create a temporary file, resize it - then delete it, and reserve (with
sceKernelReserveVirtualRange) and map a ~4GB block of memory for that file.This PR should improve PSPHD games by implementing the resize and delete methods.
Improves (shadps4-game-compatibility#124)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.