[UX] Add option to backup saves after closing a game #4247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm not 100% convinced about this feature as implemented in this PR. I do think that having a way to backup save files before doing some sync is a good idea because I've seen many support tickets of users playing around with cloud saves and ending up losing their saves for different reasons.
This PR adds an option to copy the saves of a game into Heroic's config folder after the game closes if it supports cloud saves and they are enabled.
I think we can only implement this for games with cloud saves since those are the ones we can know the save path from the metadata.
I don't know if the approach here is the best idea so I'm open to any feedback. Other options could be:
I also don't know how big save files can get (I know GOG added some limits, but I don't know about Epic). Maybe we have to put some limit in the number of backups per game? I'm not sure either
Use the following Checklist if you have changed something on the Backend or Frontend: