1
0
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:
Mathieu Schroeter 2018-06-09 12:11:33 +02:00
parent 3cbd89fcaf
commit 0e8f8e8bef

View File

@ -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';