Fix save search timestamps so GTA V restores saved settings #557

Closed
github-bot wants to merge 1 commit from gh-pr/557/head into gh-pr/557/base
Owner

@⁠Almo7aya on GitHub · 2026-09-10 17:14 UTC · original
Almo7aya:fix/save-data-search-timestamps → main · +21 −0 · 1 files · 1 commits · closed without merging

Fix save searches returning a zero modification time, which causes some games to ignore existing saves and reset settings.
Report the newest file timestamp within each save directory, including subdirectories.

Verified in GTA V: graphics settings persist across multiple restarts.

**@⁠Almo7aya** on GitHub · 2026-09-10 17:14 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/557) `Almo7aya:fix/save-data-search-timestamps` → `main` · +21 −0 · 1 files · 1 commits · closed without merging Fix save searches returning a zero modification time, which causes some games to ignore existing saves and reset settings. Report the newest file timestamp within each save directory, including subdirectories. Verified in GTA V: graphics settings persist across multiple restarts.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:25:29 +00:00
github-bot closed this pull request 2026-11-26 09:25:29 +00:00
Author
Owner

@⁠gandalfthewhite19890404 on GitHub · 2026-09-12 05:33 UTC · original

Compiled PR does not allow to set language, that promt does not appears
image

**@⁠gandalfthewhite19890404** on GitHub · 2026-09-12 05:33 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/557#issuecomment-5643812548) Compiled PR does not allow to set language, that promt does not appears <img width="1282" height="752" alt="image" src="https://github.com/user-attachments/assets/14b40425-ac5b-465b-8bd5-528d1b804c9a" />
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-23 08:00 UTC · original

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d1821428-008b-4008-8c37-d8a0a69941f6

📥 Commits

Reviewing files that changed from the base of the PR and between 8b095caefe and 612bd4d8f9.

📒 Files selected for processing (1)
  • src/libs/libSaveData.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Added a helper that recursively finds the newest UTC file timestamp beneath a save directory. It skips . and .. and returns zero when it finds no timestamp. SaveDataDirNameSearch now sets each returned save parameter’s mtime to this value.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 612bd

The timestamp change is ready to merge after normal checks; no actionable issue was established in the changed save search.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the save-search timestamp fix and its effect on restoring GTA V settings.
Description check ✅ Passed The description explains the zero modification-time issue, the recursive timestamp fix, and the reported GTA V verification.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-23 08:00 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/557#issuecomment-5791239356) <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/557"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `d1821428-008b-4008-8c37-d8a0a69941f6` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 8b095caefecc2b0066b1b66425d24fd90f29a609 and 612bd4d8f9b004d247ad20cdbf701707bd36ebe3. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `src/libs/libSaveData.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough Added a helper that recursively finds the newest UTC file timestamp beneath a save directory. It skips `.` and `..` and returns zero when it finds no timestamp. `SaveDataDirNameSearch` now sets each returned save parameter’s `mtime` to this value. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"612bd4d8f9b004d247ad20cdbf701707bd36ebe3" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `612bd` <!-- final_review_risk_coverage:{"sourceCommitId":"612bd4d8f9b004d247ad20cdbf701707bd36ebe3","coveredCommitId":"612bd4d8f9b004d247ad20cdbf701707bd36ebe3","kind":"reviewed"} --> The timestamp change is ready to merge after normal checks; no actionable issue was established in the changed save search. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :--------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly identifies the save-search timestamp fix and its effect on restoring GTA V settings. | | Description check | ✅ Passed | The description explains the zero modification-time issue, the recursive timestamp fix, and the reported GTA V verification. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠Nmzik on GitHub · 2026-09-23 18:52 UTC · original

Credited. If saving fails(error in console), please remove the old save files.

**@⁠Nmzik** on GitHub · 2026-09-23 18:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/557#issuecomment-5800931504) Credited. If saving fails(error in console), please remove the old save files.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.