mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
platform/android_nosdl: remove NULL native object case
This commit is contained in:
parent
8ebe5b12c5
commit
a6edffe86b
@ -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
Block a user