|
@@ -1607,6 +1607,16 @@ static int frontend_unix_get_rating(void)
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
+static void frontend_unix_content_loaded(void) {
|
|
|
+ struct android_app *app = g_android;
|
|
|
+ JNIEnv *env = NULL;
|
|
|
+
|
|
|
+ CALL_VOID_METHOD(
|
|
|
+ env, app->activity->clazz,
|
|
|
+ app->contentLoaded
|
|
|
+ );
|
|
|
+}
|
|
|
+
|
|
|
static enum frontend_powerstate frontend_unix_get_powerstate(
|
|
|
int *seconds, int *percent)
|
|
|
{
|
|
@@ -2561,6 +2571,8 @@ static void frontend_unix_init(void *data)
|
|
|
"openGameDialog", "()V");
|
|
|
GET_METHOD_ID(env, android_app->environmentCallback, class,
|
|
|
"environmentCallback", "(ILjava/lang/Object;)V");
|
|
|
+ GET_METHOD_ID(env, android_app->contentLoaded, class,
|
|
|
+ "contentLoaded", "()V");
|
|
|
|
|
|
GET_OBJECT_CLASS(env, class, obj);
|
|
|
GET_METHOD_ID(env, android_app->getStringExtra, class,
|
|
@@ -3355,7 +3367,7 @@ frontend_ctx_driver_t frontend_ctx_unix = {
|
|
|
#endif
|
|
|
frontend_unix_get_os,
|
|
|
frontend_unix_get_rating, /* get_rating */
|
|
|
- NULL, /* content_loaded */
|
|
|
+ frontend_unix_content_loaded, /* content_loaded */
|
|
|
frontend_unix_get_arch, /* get_architecture */
|
|
|
frontend_unix_get_powerstate,
|
|
|
frontend_unix_parse_drive_list,
|
|
@@ -3405,3 +3417,4 @@ frontend_ctx_driver_t frontend_ctx_unix = {
|
|
|
|
|
|
|
|
|
|
|
|
+
|