mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Retrieve the base path on Android too
This commit is contained in:
parent
3cbd89fcaf
commit
0e8f8e8bef
@ -113,6 +113,9 @@ GetShareDir ()
|
||||
if (!basePath.size ())
|
||||
{
|
||||
auto sdlBasePath = SDL_GetBasePath ();
|
||||
auto platform = SDL_GetPlatform ();
|
||||
if (platform && !strcmp (platform, "Android"))
|
||||
sdlBasePath = SDL_strdup (SDL_AndroidGetInternalStoragePath ());
|
||||
|
||||
sdlBasePath[strlen (sdlBasePath) - 1] = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user