mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-16 00:08:14 +00:00
android: fix android.content.Context:getCacheDir JNI prototype
This commit is contained in:
@@ -2400,7 +2400,7 @@ const char *SDL_GetAndroidCachePath(void)
|
|||||||
|
|
||||||
// fileObj = context.getExternalFilesDir();
|
// fileObj = context.getExternalFilesDir();
|
||||||
mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
|
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);
|
fileObject = (*env)->CallObjectMethod(env, context, mid, NULL);
|
||||||
if (!fileObject) {
|
if (!fileObject) {
|
||||||
SDL_SetError("Couldn't get cache directory");
|
SDL_SetError("Couldn't get cache directory");
|
||||||
|
Reference in New Issue
Block a user