Android fix for magic tools under 64 bits devices by Terrence Sheflin, see 345d3cc78a

This commit is contained in:
Pere Pujal i Carabantes 2022-07-20 23:38:04 +02:00
parent 79c246976c
commit 73c1cabac1
3 changed files with 15 additions and 2 deletions

View file

@ -20338,8 +20338,7 @@ static void load_magic_plugins(void)
{
#if defined (__ANDROID__)
/* Need this at runtime as Android installs on different locations depending on the user */
place = strdup(SDL_AndroidGetInternalStoragePath());
strcpy(strstr(place, "/files"), "/lib/");
place = strdup(get_nativelibdir());
#else
place = strdup(MAGIC_PREFIX);
#endif