Added another constructor to avoid requiring a full ANativeActivity
parent
817fbed8c2
commit
6e5600a9a5
|
@ -65,6 +65,8 @@ public:
|
|||
/** Constructor. */
|
||||
AndroidJNIIOSystem(ANativeActivity* activity);
|
||||
|
||||
AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager);
|
||||
|
||||
/** Destructor. */
|
||||
~AndroidJNIIOSystem();
|
||||
|
||||
|
|
|
@ -67,6 +67,12 @@ AndroidJNIIOSystem::AndroidJNIIOSystem(ANativeActivity* activity)
|
|||
AndroidActivityInit(activity);
|
||||
}
|
||||
|
||||
AndroidJNIIOSystem::AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager)
|
||||
{
|
||||
mApkWorkspacePath = internalDataPath;
|
||||
mApkAssetManager = assetManager;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Destructor.
|
||||
AndroidJNIIOSystem::~AndroidJNIIOSystem()
|
||||
|
|
Loading…
Reference in New Issue