diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2024-07-24 22:57:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 22:57:06 +0200 |
commit | ab80e564b218ed5dd80a04162ff92d267e9d7282 (patch) | |
tree | cb3ed42af3394f691982fd703ef609fbe29ef207 /platform/android/java_godot_wrapper.h | |
parent | d3427dcd0fba24105ec54d5252b19ae0af9800b8 (diff) | |
parent | 4d0da7401412edaba475de33d42a73ba8ca82cd3 (diff) | |
download | redot-engine-ab80e564b218ed5dd80a04162ff92d267e9d7282.tar.gz |
Merge pull request #94661 from m4gr3d/fix_android_render_thread_cleanup
Fix the cleanup logic for the Android render thread
Diffstat (limited to 'platform/android/java_godot_wrapper.h')
-rw-r--r-- | platform/android/java_godot_wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/java_godot_wrapper.h b/platform/android/java_godot_wrapper.h index e86391d4e3..358cf3261d 100644 --- a/platform/android/java_godot_wrapper.h +++ b/platform/android/java_godot_wrapper.h @@ -68,6 +68,7 @@ private: jmethodID _get_input_fallback_mapping = nullptr; jmethodID _on_godot_setup_completed = nullptr; jmethodID _on_godot_main_loop_started = nullptr; + jmethodID _on_godot_terminating = nullptr; jmethodID _create_new_godot_instance = nullptr; jmethodID _get_render_view = nullptr; jmethodID _begin_benchmark_measure = nullptr; @@ -85,6 +86,7 @@ public: void on_godot_setup_completed(JNIEnv *p_env = nullptr); void on_godot_main_loop_started(JNIEnv *p_env = nullptr); + void on_godot_terminating(JNIEnv *p_env = nullptr); void restart(JNIEnv *p_env = nullptr); bool force_quit(JNIEnv *p_env = nullptr, int p_instance_id = 0); void set_keep_screen_on(bool p_enabled); |