diff options
Diffstat (limited to 'platform/android/java_glue.cpp')
-rw-r--r-- | platform/android/java_glue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/java_glue.cpp b/platform/android/java_glue.cpp index 5c39cdbacc..e67388b6f5 100644 --- a/platform/android/java_glue.cpp +++ b/platform/android/java_glue.cpp @@ -1573,13 +1573,18 @@ JNIEXPORT void JNICALL Java_com_android_godot_GodotLib_calldeferred(JNIEnv * env int count = env->GetArrayLength(params); Variant args[VARIANT_ARG_MAX]; + print_line("Java->GD call: "+obj->get_type()+"::"+str_method+" argc "+itos(count)); + for (int i=0; i<MIN(count,VARIANT_ARG_MAX); i++) { jobject obj = env->GetObjectArrayElement(params, i); args[i] = _jobject_to_variant(env, obj); + print_line("\targ"+itos(i)+": "+Variant::get_type_name(args[i].get_type())); + }; + obj->call_deferred(str_method, args[0],args[1],args[2],args[3],args[4]); // something }; |