Android: SDL_GetPrefPath & SDL_AndroidGetInternalStoragePath

Hi,

On Android, the call SDL_GetPrefPath crashes. I’m not sure why because as far as I can tell it’s not implemented. (SDL_GetBasePath doesn’t crash, but returns NULL)
Anyway, I was wondering why Android has a separate call for finding a path to save files, SDL_AndroidGetInternalStoragePath?

Wouldn’t it be better if SDL_GetPrefPath called SDL_AndroidGetInternalStoragePath on Android?

Cheers,
Steve

2015-01-25 11:31 GMT+01:00 Starg :

Hi,

On Android, the call SDL_GetPrefPath crashes. I’m not sure why because as
far as I can tell it’s not implemented. (SDL_GetBasePath doesn’t crash, but
returns NULL)
Anyway, I was wondering why Android has a separate call for finding a path
to save files, SDL_AndroidGetInternalStoragePath?

Wouldn’t it be better if SDL_GetPrefPath called
SDL_AndroidGetInternalStoragePath on Android?

That’s what it does:
https://hg.libsdl.org/SDL/file/8d826bc39a45/src/filesystem/android/SDL_sysfilesystem.c#l46
Also, Android filesystem compilation is broken for autoconf:
https://bugzilla.libsdl.org/show_bug.cgi?id=2802

Ah, thanks. However, that change is not in the SDL2-2.0.3 source download.
When will a new build be released. Or is it better I just check the code out directly?