Added another constructor to avoid requiring a full ANativeActivity

pull/4142/head
Daniel-Genkin 2021-10-28 10:26:14 -04:00
parent 817fbed8c2
commit 6e5600a9a5
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,8 @@ public:
/** Constructor. */
AndroidJNIIOSystem(ANativeActivity* activity);
AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager);
/** Destructor. */
~AndroidJNIIOSystem();

View File

@ -67,6 +67,12 @@ AndroidJNIIOSystem::AndroidJNIIOSystem(ANativeActivity* activity)
AndroidActivityInit(activity);
}
AndroidJNIIOSystem::AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager)
{
mApkWorkspacePath = internalDataPath;
mApkAssetManager = assetManager;
}
// ------------------------------------------------------------------------------------------------
// Destructor.
AndroidJNIIOSystem::~AndroidJNIIOSystem()