From a1f5c49fbd9c8f15900984ca72aca434f456363e Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sat, 9 Jun 2018 16:06:52 +0200 Subject: [PATCH] Fix path for Android assets --- src/misc.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/misc.cxx b/src/misc.cxx index 665ad88..69dcdf5 100644 --- a/src/misc.cxx +++ b/src/misc.cxx @@ -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';