mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-28 01:06:02 +03:00
[PR #506] [MERGED] Untranslocate app bundle path if needed on macOS. #1602
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#1602
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/506
Author: @squidbus
Created: 8/21/2024
Status: ✅ Merged
Merged: 8/21/2024
Merged by: @georgemoralis
Base:
main← Head:macos-translocation📝 Commits (1)
9275b09Untranslocate app bundle path if needed on macOS.📊 Changes
1 file changed (+40 additions, -10 deletions)
View changed files
📝
src/common/path_util.cpp(+40 -10)📄 Description
macOS has a security feature where, if you download and extract an app in the downloads directory, it may be translocated to a temporary location when run. In order to properly find the user directory in this case, we need to un-translocate the bundle path using the Security framework. A similar workaround is used in other emulators such as PCSX2.
Fixes the cause of https://github.com/shadps4-emu/shadPS4/issues/494. I tested by downloading from GitHub Actions and running from the downloads folder; before it would crash, now it runs and uses the correct directory.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.