1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix path for Android assets

This commit is contained in:
Mathieu Schroeter 2018-06-09 16:06:52 +02:00
parent 671b2f32e9
commit a1f5c49fbd

View File

@ -113,9 +113,8 @@ GetShareDir ()
if (!basePath.size ())
{
auto sdlBasePath = SDL_GetBasePath ();
auto platform = SDL_GetPlatform ();
if (platform && !strcmp (platform, "Android"))
sdlBasePath = SDL_strdup (SDL_AndroidGetInternalStoragePath ());
if (!sdlBasePath)
sdlBasePath = SDL_strdup ("");
sdlBasePath[strlen (sdlBasePath) - 1] = '\0';