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 - SDL_GetPrefPath() and SDL_GetBasePath() unimplemented on Android
Summary: SDL_GetPrefPath() and SDL_GetBasePath() unimplemented on Android
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.1
Hardware: All Android (All)
: P2 minor
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 07:17 UTC by raincomplex
Modified: 2015-05-03 02:22 UTC (History)
1 user (show)

See Also:


Attachments

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