[PR #3255] [MERGED] Filesystem: Fix create flag handling in open #3341

Closed
opened 2026-02-27 22:03:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3255
Author: @StevenMiller123
Created: 7/16/2025
Status: Merged
Merged: 7/16/2025
Merged by: @georgemoralis

Base: mainHead: fs-fix


📝 Commits (1)

  • 4213417 Fix create flag handling in open

📊 Changes

1 file changed (+9 additions, -7 deletions)

View changed files

📝 src/core/libraries/kernel/file_system.cpp (+9 -7)

📄 Description

If the create flag is specified but the file already exists, then the file should open successfully regardless of permissions. This behavior was validated through hardware testing.

This fixes a crash seen in Phantasy Star Online 2 New Genesis (CUSA29813), bringing the game to bootable status (now crashes from libSceHttp stubs).


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

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3255 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `fs-fix` --- ### 📝 Commits (1) - [`4213417`](https://github.com/shadps4-emu/shadPS4/commit/4213417ca9c4836ba297fb0f221047aada9c7e79) Fix create flag handling in open ### 📊 Changes **1 file changed** (+9 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/file_system.cpp` (+9 -7) </details> ### 📄 Description If the create flag is specified but the file already exists, then the file should open successfully regardless of permissions. This behavior was validated through hardware testing. This fixes a crash seen in Phantasy Star Online 2 New Genesis (CUSA29813), bringing the game to bootable status (now crashes from libSceHttp stubs). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3341
No description provided.