android: fix android.content.Context:getCacheDir JNI prototype

This commit is contained in:
Anonymous Maarten 2024-10-22 18:03:34 +02:00
parent e9b5f6749e
commit 0bec18245d

View File

@ -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");