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 2434

Summary: SDL_GetPrefPath() and SDL_GetBasePath() unimplemented on Android
Product: SDL Reporter: raincomplex
Component: *don't know*Assignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.1   
Hardware: All   
OS: Android (All)   

Description raincomplex 2014-03-07 07:17:37 UTC
It seems like SDL_AndroidGetInternalStoragePath() or SDL_AndroidGetExternalStoragePath() would work for these. The wiki doesn't say whether SDL_GetPrefPath() should be private to the app or not (which is what distinguishes the two Android*StoragePath() functions).

For loading resources, it seems the path must be given relative (you can't use the internal or external storage paths to load resources)---Android's RWops first tries to load files out of the .apk, and then from the filesystem. So I'm not sure how useful SDL_GetBasePath() on Android would be.
Comment 1 Philipp Wiesemann 2015-04-30 20:13:47 UTC
SDL_GetPrefPath() and SDL_GetBasePath() were implemented here:
https://hg.libsdl.org/SDL/rev/18d34edc79ac
Comment 2 Sam Lantinga 2015-05-03 02:22:48 UTC
Thanks Philipp!