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:
parent
671b2f32e9
commit
a1f5c49fbd
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user