We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4726

Summary: [Patch] Fix for tvOS GetPrefPath
Product: SDL Reporter: Caleb Cornett <spydog>
Component: fileAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.10   
Hardware: ARM   
OS: Other   
Attachments: tvOS PrefPath Patch

Description Caleb Cornett 2019-07-18 04:13:17 UTC
Created attachment 3886 [details]
tvOS PrefPath Patch

Unlike iOS and macOS, tvOS does not have any persistent local storage. In fact, the ApplicationSupport directory pointed to by the existing Cocoa GetPrefPath() throws an error whenever any attempt is made to access it. To get any local storage on an Apple TV, our only option is to use a temporary cache directory.

This patch changes the tvOS PrefPath to this cache directory and also logs a critical warning that this if developers want their save data to persist across game sessions, they must use some form of iCloud storage.
Comment 1 Sam Lantinga 2019-07-19 02:33:35 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/210165cb89ce