mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-27 05:43:29 +08:00
android: fix android.content.Context:getCacheDir JNI prototype
This commit is contained in:
parent
e9b5f6749e
commit
0bec18245d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user