SDL: copy executable binaries to lib dir in apk, according to https://issuetracker.google.com/issues/128554619

This commit is contained in:
Sergii Pylypenko
2019-10-15 17:57:55 +03:00
parent 01dc04fe17
commit 7c88857742
6 changed files with 50 additions and 15 deletions

View File

@@ -645,6 +645,7 @@ public class Settings
// TODO: get current user name and set envvar USER, the API is not availalbe on Android 1.6 so I don't bother with this
nativeSetEnv( "APPDIR", p.getFilesDir().getAbsolutePath() );
nativeSetEnv( "SECURE_STORAGE_DIR", p.getFilesDir().getAbsolutePath() );
nativeSetEnv( "LIBDIR", p.getApplicationInfo().nativeLibraryDir );
nativeSetEnv( "DATADIR", Globals.DataDir );
nativeSetEnv( "UNSECURE_STORAGE_DIR", Globals.DataDir );
SdcardAppPath.get().setEnv(p);