diff --git a/filesystem/android.c b/filesystem/android.c index 6be974467..f7f0910df 100644 --- a/filesystem/android.c +++ b/filesystem/android.c @@ -320,8 +320,8 @@ void FS_InitAndroid( void ) { jmethodID getContext; - jni.env = (JNIEnv *)Platform_GetNativeObject( "JNIEnv" ); - jni.activity_class = Platform_GetNativeObject( "ActivityClass" ); + jni.env = (JNIEnv *)Sys_GetNativeObject( "JNIEnv" ); + jni.activity_class = Sys_GetNativeObject( "ActivityClass" ); getContext = (*jni.env)->GetStaticMethodID( jni.env, jni.activity_class, "getContext", "()Landroid/content/Context;" ); jni.activity = (*jni.env)->CallStaticObjectMethod( jni.env, jni.activity_class, getContext );