2
0
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:
mittorn 2023-12-16 22:12:40 +03:00
parent 8ebe5b12c5
commit a6edffe86b

View File

@ -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;
}