tvOS: Add Settings.app option to reset retroarch.cfg #17143
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.
This is necessary specifically for tvOS because of the heroics needed to keep the retroarch.cfg file alive even when the OS deletes everything else. We copy the retroarch.cfg file into the persistent storage area, and then if it is ever deleted, we restore it. However, if the user really does want to reset to a default config, there's no way of doing that.
Also tvOS doesn't provide a way of manually deleting the retroarch.cfg file other then when the app is running, as the file system isn't accessible (unlike on iOS where the Files.app can delete it).