diff --git a/include/assimp/port/AndroidJNI/AndroidJNIIOSystem.h b/include/assimp/port/AndroidJNI/AndroidJNIIOSystem.h index 01505d571..370327542 100644 --- a/include/assimp/port/AndroidJNI/AndroidJNIIOSystem.h +++ b/include/assimp/port/AndroidJNI/AndroidJNIIOSystem.h @@ -65,6 +65,8 @@ public: /** Constructor. */ AndroidJNIIOSystem(ANativeActivity* activity); + AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager); + /** Destructor. */ ~AndroidJNIIOSystem(); diff --git a/port/AndroidJNI/AndroidJNIIOSystem.cpp b/port/AndroidJNI/AndroidJNIIOSystem.cpp index db499a20b..bed40ce51 100644 --- a/port/AndroidJNI/AndroidJNIIOSystem.cpp +++ b/port/AndroidJNI/AndroidJNIIOSystem.cpp @@ -67,6 +67,12 @@ AndroidJNIIOSystem::AndroidJNIIOSystem(ANativeActivity* activity) AndroidActivityInit(activity); } +AndroidJNIIOSystem::AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager) +{ + mApkWorkspacePath = internalDataPath; + mApkAssetManager = assetManager; +} + // ------------------------------------------------------------------------------------------------ // Destructor. AndroidJNIIOSystem::~AndroidJNIIOSystem()