mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3414] [MERGED] Core: Add entries for . and .. in MntPoints::IterateDirectory #3449
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#3449
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/3414
Author: @StevenMiller123
Created: 8/12/2025
Status: ✅ Merged
Merged: 8/13/2025
Merged by: @georgemoralis
Base:
main← Head:dirent-fix📝 Commits (1)
56ca567Add entries for . and .. in MntPoints::IterateDirectory📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
src/core/file_sys/fs.cpp(+4 -0)📄 Description
On a real PS4, all directories will start with an directory entry for "." and "..". Emulating this behavior is necessary for some games, since devs can safely assume there will always be at least one entry in a given directory, and try to read said entry regardless of what we return.
Emulating these two entries fixes an exception in Grand Theft Auto V (CUSA00419) that occurs if the game's /download0 mount is empty.
For context, here's the output on real hardware, from a homebrew I wrote for testing this:

Here's what the current shadPS4 main build shows:

And here's what my PR shows:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.