Skip to content

Commit

Permalink
android: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Velaron committed Nov 1, 2023
1 parent 29f75d7 commit d0146e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filesystem/android.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d0146e7

Please sign in to comment.