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 ()) if (!basePath.size ())
{ {
auto sdlBasePath = SDL_GetBasePath (); auto sdlBasePath = SDL_GetBasePath ();
auto platform = SDL_GetPlatform (); if (!sdlBasePath)
if (platform && !strcmp (platform, "Android")) sdlBasePath = SDL_strdup ("");
sdlBasePath = SDL_strdup (SDL_AndroidGetInternalStoragePath ());
sdlBasePath[strlen (sdlBasePath) - 1] = '\0'; sdlBasePath[strlen (sdlBasePath) - 1] = '\0';