SDL: new download method 'mnt:' to mount .obb file created by jobb tool, the mount path is returned in ANDROID_OBB_MOUNT_DIR env variable

This commit is contained in:
Sergii Pylypenko
2021-05-20 02:32:35 +03:00
parent 326ebb7607
commit b9dfad3516
3 changed files with 61 additions and 1 deletions

View File

@@ -665,6 +665,10 @@ public class Settings
try {
nativeSetEnv( "ANDROID_OBB_DIR", p.getObbDir().getAbsolutePath() );
} catch (Exception eeeeeee) {}
if( p.ObbMountPath != null )
{
nativeSetEnv( "ANDROID_OBB_MOUNT_DIR", p.ObbMountPath );
}
try {
nativeSetEnv( "ANDROID_APP_NAME", p.getString(p.getApplicationInfo().labelRes) );
} catch (Exception eeeeee) {}