Skip to content

Commit

Permalink
android: fix android.content.Context:getCacheDir JNI prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Oct 22, 2024
1 parent e9b5f67 commit 0bec182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/android/SDL_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ const char *SDL_GetAndroidCachePath(void)

// fileObj = context.getExternalFilesDir();
mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
"getCacheDir", "(Ljava/lang/String;)Ljava/io/File;");
"getCacheDir", "()Ljava/io/File;");
fileObject = (*env)->CallObjectMethod(env, context, mid, NULL);
if (!fileObject) {
SDL_SetError("Couldn't get cache directory");
Expand Down

0 comments on commit 0bec182

Please sign in to comment.