diff --git a/src/misc.cxx b/src/misc.cxx index 3884ec7..36d1148 100644 --- a/src/misc.cxx +++ b/src/misc.cxx @@ -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';