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 - [Patch] Fix for tvOS GetPrefPath
Summary: [Patch] Fix for tvOS GetPrefPath
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: 2.0.10
Hardware: ARM Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-18 04:13 UTC by Caleb Cornett
Modified: 2019-07-19 02:33 UTC (History)
0 users

See Also:


Attachments
tvOS PrefPath Patch (1.44 KB, patch)
2019-07-18 04:13 UTC, Caleb Cornett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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