mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #967] [MERGED] core: Add wrapper for calling into guest code. #1858
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#1858
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/967
Author: @squidbus
Created: 9/17/2024
Status: ✅ Merged
Merged: 9/23/2024
Merged by: @georgemoralis
Base:
main← Head:guest-call📝 Commits (1)
193e55bcore: Add wrapper for calling into guest code.📊 Changes
8 files changed (+57 additions, -35 deletions)
View changed files
📝
src/core/libraries/avplayer/avplayer.h(+14 -13)📝
src/core/libraries/avplayer/avplayer_state.cpp(+8 -5)📝
src/core/libraries/avplayer/avplayer_state.h(+2 -2)📝
src/core/libraries/kernel/thread_management.cpp(+1 -7)📝
src/core/libraries/network/net_ctl_obj.cpp(+8 -2)📝
src/core/linker.cpp(+12 -4)📝
src/core/linker.h(+9 -1)📝
src/core/module.cpp(+3 -1)📄 Description
Adds a wrapper for calling into guest code, allowing us to perform any required prologue or epilogue.
Currently this function just makes sure that the current thread has a patch stack and guest TLS set up before calling guest code. In the future it could be used for things like managing the FS segment on Linux.
Also fixes a type inconsistency in an AvPlayer callback which was causing type issues with the new wrapper.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.