android: fix android.content.Context:getCacheDir JNI prototype
This commit is contained in:
parent
e9b5f6749e
commit
0bec18245d
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue