[PR #3994] [MERGED] filesystem: fill in timespec values for fstat #3853

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3994
Author: @kalaposfos13
Created: 2/5/2026
Status: Merged
Merged: 2/5/2026
Merged by: @georgemoralis

Base: mainHead: timespec


📝 Commits (3)

📊 Changes

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

View changed files

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

📄 Description

Tearaway Unfolded has a check for whether the save files' last modification fall into a specific timespan, and if they aren't, then the save gets flagged as corrupt. By leaving these fields as zero, that check fails. By providing the correct values, this save "corruption" issue is resolved, although this doesn't help much for the fact that the game is still hanging at the end of loading.
On the Windows side, all three values (creation, modification and access) are spoofed with the last modification date, because that's the only one that std::filesystem has a cross-platform implementation for.


🔄 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/3994 **Author:** [@kalaposfos13](https://github.com/kalaposfos13) **Created:** 2/5/2026 **Status:** ✅ Merged **Merged:** 2/5/2026 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `timespec` --- ### 📝 Commits (3) - [`c077c16`](https://github.com/shadps4-emu/shadPS4/commit/c077c1679e9e14ca6c464f5bc44e4786b7a78752) filesystem: fill in timespec values for fstat - [`0ed28b7`](https://github.com/shadps4-emu/shadPS4/commit/0ed28b75fa80d2942af694bf78cf5a2ae9ab3846) w*ndows - [`96a38ad`](https://github.com/shadps4-emu/shadPS4/commit/96a38ad30f158fb36a3bcaa2529cd1594ef90b45) fix windows and mac ### 📊 Changes **1 file changed** (+25 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/file_system.cpp` (+25 -0) </details> ### 📄 Description Tearaway Unfolded has a check for whether the save files' last modification fall into a specific timespan, and if they aren't, then the save gets flagged as corrupt. By leaving these fields as zero, that check fails. By providing the correct values, this save "corruption" issue is resolved, although this doesn't help much for the fact that the game is still hanging at the end of loading. On the Windows side, all three values (creation, modification and access) are spoofed with the last modification date, because that's the only one that std::filesystem has a cross-platform implementation for. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:13 +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#3853
No description provided.