mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3259] [CLOSED] Initialize the heap API and add new memory functions in HLE LibcInternal #3342
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#3342
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/3259
Author: @kalaposfos13
Created: 7/16/2025
Status: ❌ Closed
Base:
main← Head:init-heap-api📝 Commits (5)
5cce714Initialize the heap api04b6361Add back memory functions that were already added oncee0af9aaChange heap API functions to the internal libc functions5ce97ceAdd calloc and realloc1fc7573Fine clang, you win📊 Changes
3 files changed (+93 additions, -1 deletions)
View changed files
📝
src/core/libraries/libc_internal/libc_internal_memory.cpp(+58 -0)📝
src/core/libraries/libc_internal/libc_internal_memory.h(+23 -0)📝
src/core/linker.cpp(+12 -1)📄 Description
Applications that do not use their own libc.prx and instead rely on libSceLibcInternal will not initialize this, and will crash on the first call of any of these functions. This PR initializes the heap API so there's at least something for these apps to work with. I tested it with NPXS20001, and it seems to work, by comparing its behaviour to when I put a libc.prx from one of my games to its sce_module folder. However, since I'm not too knowledgeable on this topic, I'll open it as a draft for now.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.