Games: Add setting to disable autosave #14169
Merged
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.
How autosave works:
If a game supports serialization, it is autosaved alongside the rom (e.g. Mario.smc creates Mario.sav and Mario.xml).
This happens when the game is closed. It also happens every 10 seconds in case of power outage. When the game is resumed, the last savestate is loaded.
This PR adds a setting to disable autosave.
Also includes:
Motivation and Context
Reported in March: https://forum.kodi.tv/showthread.php?tid=173361&pid=2709320#pid2709320
How Has This Been Tested?
Tested on Linux x64 with several GBA cores. When disabled, no autosaves are created or loaded.
Screenshots (if appropriate):
Types of change