mirror of https://github.com/FWGS/xash3d-fwgs
platform/android_nosdl: remove NULL native object case
This commit is contained in:
parent
dbc54fb522
commit
be9dda2a56
|
@ -667,14 +667,9 @@ Android_GetNativeObject
|
|||
*/
|
||||
void *Android_GetNativeObject( const char *objName )
|
||||
{
|
||||
static const char *availObjects[] = { "JNIEnv", "ActivityClass", NULL };
|
||||
void *object = NULL;
|
||||
|
||||
if( !objName )
|
||||
{
|
||||
object = (void*)availObjects;
|
||||
}
|
||||
else if( !strcasecmp( objName, "JNIEnv" ) )
|
||||
if( !strcasecmp( objName, "JNIEnv" ) )
|
||||
{
|
||||
object = (void*)jni.env;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue