|
@@ -17,6 +17,7 @@
|
|
|
*/
|
|
|
|
|
|
#include "retro_miscellaneous.h"
|
|
|
+#include <jni.h>
|
|
|
#include <stdio.h>
|
|
|
#include <stdint.h>
|
|
|
#include <stddef.h>
|
|
@@ -500,6 +501,14 @@ static struct android_app* android_app_create(ANativeActivity* activity,
|
|
|
return android_app;
|
|
|
}
|
|
|
|
|
|
+JNIEXPORT void JNICALL Java_com_retroarch_browser_retroactivity_RetroActivityCommon_gameDialogClosed(
|
|
|
+ JNIEnv *env, jobject thisObj
|
|
|
+) {
|
|
|
+ struct android_app *android_app = (struct android_app*)g_android;
|
|
|
+
|
|
|
+ android_app_write_cmd(android_app, APP_CMD_GAME_DIALOG_CLOSED);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* Native activity interaction (called from main thread)
|
|
|
**/
|
|
@@ -2097,6 +2106,8 @@ static void frontend_unix_init(void *data)
|
|
|
"getVolumeCount", "()I");
|
|
|
GET_METHOD_ID(env, android_app->getVolumePath, class,
|
|
|
"getVolumePath", "(Ljava/lang/String;)Ljava/lang/String;");
|
|
|
+ GET_METHOD_ID(env, android_app->openGameDialog, class,
|
|
|
+ "openGameDialog", "()V");
|
|
|
|
|
|
GET_OBJECT_CLASS(env, class, obj);
|
|
|
GET_METHOD_ID(env, android_app->getStringExtra, class,
|