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