diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-28 03:48:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 03:48:54 +0100 |
commit | d5e8c9d04f80aee80aa93f7963259c6fecacc660 (patch) | |
tree | 75fd375885ee8c55a1b7715f281c985996bf9370 /src/android/app/src/main/jni/id_cache.cpp | |
parent | Merge pull request #12818 from K900/small-fixes (diff) | |
parent | android: Multi-program app switching (diff) | |
download | yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.gz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.bz2 yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.lz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.xz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.zst yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.zip |
Diffstat (limited to 'src/android/app/src/main/jni/id_cache.cpp')
-rw-r--r-- | src/android/app/src/main/jni/id_cache.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/android/app/src/main/jni/id_cache.cpp b/src/android/app/src/main/jni/id_cache.cpp index 96f2ad3d4..f30100bd8 100644 --- a/src/android/app/src/main/jni/id_cache.cpp +++ b/src/android/app/src/main/jni/id_cache.cpp @@ -19,6 +19,7 @@ static jmethodID s_exit_emulation_activity; static jmethodID s_disk_cache_load_progress; static jmethodID s_on_emulation_started; static jmethodID s_on_emulation_stopped; +static jmethodID s_on_program_changed; static jclass s_game_class; static jmethodID s_game_constructor; @@ -123,6 +124,10 @@ jmethodID GetOnEmulationStopped() { return s_on_emulation_stopped; } +jmethodID GetOnProgramChanged() { + return s_on_program_changed; +} + jclass GetGameClass() { return s_game_class; } @@ -306,6 +311,8 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) { env->GetStaticMethodID(s_native_library_class, "onEmulationStarted", "()V"); s_on_emulation_stopped = env->GetStaticMethodID(s_native_library_class, "onEmulationStopped", "(I)V"); + s_on_program_changed = + env->GetStaticMethodID(s_native_library_class, "onProgramChanged", "(I)V"); const jclass game_class = env->FindClass("org/yuzu/yuzu_emu/model/Game"); s_game_class = reinterpret_cast<jclass>(env->NewGlobalRef(game_class)); |