The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Android: SDL_GetPrefPath & SDL_AndroidGetInternalStorage
Starg


Joined: 28 Mar 2014
Posts: 22
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
Android: SDL_GetPrefPath & SDL_AndroidGetInternalStorage
Jonas Kulla
Guest

2015-01-25 11:31 GMT+01:00 Starg:
Quote:
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
Starg


Joined: 28 Mar 2014
Posts: 22
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?