fix(savedata): preserve existing saves on replace failure #244

Merged
RomainROCH merged 2 commits from upstream-pr/244 into main 2026-10-02 19:20:58 +00:00
RomainROCH commented 2026-10-01 18:40:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RomainROCH on 2026-10-01T18:40:43Z.


What

Both SaveData backends now use a shared file-replacement helper that preserves the existing save if preparing or installing its replacement fails.

Tested

Windows; exact-source CMake build of the three SaveData replacement targets. Focused CTest: 3/3 passed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no new unimplemented paths are added
  • No notes, investigation files or images added to the repository
  • No third-party code added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4708009040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/244). Originally posted by [RomainROCH](https://github.com/RomainROCH) on 2026-10-01T18:40:43Z. --- ### What Both SaveData backends now use a shared file-replacement helper that preserves the existing save if preparing or installing its replacement fails. ### Tested Windows; exact-source CMake build of the three SaveData replacement targets. Focused CTest: 3/3 passed. ### Checklist - [x] Based on current main; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no new unimplemented paths are added - [x] No notes, investigation files or images added to the repository - [x] No third-party code added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!244
No description provided.