Added another constructor to avoid requiring a full ANativeActivity

This commit is contained in:
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

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