summaryrefslogtreecommitdiff
path: root/Source/Android/jni/AndroidCommon/IDCache.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-10-21 22:29:21 +0200
committerGitHub <noreply@github.com>2020-10-21 22:29:21 +0200
commit18b2553538acf647b9e965136b035adaeef87b88 (patch)
tree40de11fa4728ffe37963e7b80aecf9303e0095a8 /Source/Android/jni/AndroidCommon/IDCache.cpp
parent548bfbe2a201f26580ad3d23b4f7cc51c6772c2f (diff)
parente86d713600b5e97af9904518b47152c97949c85e (diff)
Merge pull request #9078 from JosJuice/android-metadata-from-core
Android: Get game metadata from core
Diffstat (limited to 'Source/Android/jni/AndroidCommon/IDCache.cpp')
-rw-r--r--Source/Android/jni/AndroidCommon/IDCache.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Android/jni/AndroidCommon/IDCache.cpp b/Source/Android/jni/AndroidCommon/IDCache.cpp
index 308fda1f04..bebdea1a4b 100644
--- a/Source/Android/jni/AndroidCommon/IDCache.cpp
+++ b/Source/Android/jni/AndroidCommon/IDCache.cpp
@@ -13,7 +13,8 @@ static JavaVM* s_java_vm;
static jclass s_native_library_class;
static jmethodID s_display_alert_msg;
static jmethodID s_do_rumble;
-static jmethodID s_get_update_touch_pointer;
+static jmethodID s_update_touch_pointer;
+static jmethodID s_on_title_changed;
static jclass s_game_file_class;
static jfieldID s_game_file_pointer;
@@ -85,7 +86,12 @@ jmethodID GetDoRumble()
jmethodID GetUpdateTouchPointer()
{
- return s_get_update_touch_pointer;
+ return s_update_touch_pointer;
+}
+
+jmethodID GetOnTitleChanged()
+{
+ return s_on_title_changed;
}
jclass GetAnalyticsClass()
@@ -212,8 +218,9 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
s_display_alert_msg = env->GetStaticMethodID(s_native_library_class, "displayAlertMsg",
"(Ljava/lang/String;Ljava/lang/String;ZZ)Z");
s_do_rumble = env->GetStaticMethodID(s_native_library_class, "rumble", "(ID)V");
- s_get_update_touch_pointer =
+ s_update_touch_pointer =
env->GetStaticMethodID(s_native_library_class, "updateTouchPointer", "()V");
+ s_on_title_changed = env->GetStaticMethodID(s_native_library_class, "onTitleChanged", "()V");
env->DeleteLocalRef(native_library_class);
const jclass game_file_class = env->FindClass("org/dolphinemu/dolphinemu/model/GameFile");