[PR #3781] [MERGED] filesystem: return st_mtim in posix_stat (fixes RB4 / CUSA02901 DLC crash) #3716

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3781
Author: @InvoxiPlayGames
Created: 11/6/2025
Status: Merged
Merged: 11/6/2025
Merged by: @georgemoralis

Base: mainHead: stat_mtim


📝 Commits (3)

  • 750493a filesystem: return st_mtim in posix_stat
  • 8f2dc10 filesystem: stat - remove reliance on clock_cast
  • ce92226 filesystem: stat - remove reliance on to_time_t

📊 Changes

1 file changed (+12 additions, -0 deletions)

View changed files

📝 src/core/libraries/kernel/file_system.cpp (+12 -0)

📄 Description

Implements a basic form of reporting the file modified time in the st_mtim field of posix_stat.

This fixes the crash experienced in Rock Band 4 (CUSA02901) version 02.21 when loading an installed DLC track.


🔄 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/3781 **Author:** [@InvoxiPlayGames](https://github.com/InvoxiPlayGames) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/6/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `stat_mtim` --- ### 📝 Commits (3) - [`750493a`](https://github.com/shadps4-emu/shadPS4/commit/750493a83b3efc07ff0739e269e4d8cfa6fc5c31) filesystem: return st_mtim in posix_stat - [`8f2dc10`](https://github.com/shadps4-emu/shadPS4/commit/8f2dc10cd7ccf2354bedc1368a08048f5c18b5ae) filesystem: stat - remove reliance on clock_cast - [`ce92226`](https://github.com/shadps4-emu/shadPS4/commit/ce922264469fcfd07622fd172f532cb3c32ca0b7) filesystem: stat - remove reliance on to_time_t ### 📊 Changes **1 file changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/file_system.cpp` (+12 -0) </details> ### 📄 Description Implements a basic form of reporting the file modified time in the `st_mtim` field of posix_stat. This fixes the crash experienced in Rock Band 4 (CUSA02901) version 02.21 when loading an installed DLC track. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:43 +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#3716
No description provided.