From 6a4614ef48aba0cdee4ed2aedf15b21170ecb4ed Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Wed, 26 Jan 2022 13:50:58 -0800 Subject: [PATCH] Include the `godot_plugin_jni.cpp` file into the `platform/android/SCsub` file This should resolve https://github.com/godotengine/godot/issues/57209 --- platform/android/SCsub | 1 + platform/android/plugin/godot_plugin_jni.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/android/SCsub b/platform/android/SCsub index ecc72019e5a..d031d14499b 100644 --- a/platform/android/SCsub +++ b/platform/android/SCsub @@ -18,6 +18,7 @@ android_files = [ "jni_utils.cpp", "android_keys_utils.cpp", "display_server_android.cpp", + "plugin/godot_plugin_jni.cpp", "vulkan/vulkan_context_android.cpp", ] diff --git a/platform/android/plugin/godot_plugin_jni.cpp b/platform/android/plugin/godot_plugin_jni.cpp index 2207eec18d4..48aeb3d0701 100644 --- a/platform/android/plugin/godot_plugin_jni.cpp +++ b/platform/android/plugin/godot_plugin_jni.cpp @@ -126,7 +126,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_plugin_GodotPlugin_nativeEmitS env->DeleteLocalRef(j_param); }; - singleton->emit_signal(SNAME(signal_name), args, count); + singleton->emit_signal(StringName(signal_name), args, count); } JNIEXPORT void JNICALL Java_org_godotengine_godot_plugin_GodotPlugin_nativeRegisterGDNativeLibraries(JNIEnv *env, jclass clazz, jobjectArray gdnlib_paths) {