From 700310c8c3dec0165380702bdedf8da998891e94 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 17 Nov 2018 18:23:52 +0200 Subject: [PATCH 1/2] Fix ptrcall passing invalid size int. --- binding_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index 3137660..80bc0b9 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -541,6 +541,8 @@ def generate_icall_header(icalls): if is_core_type(arg): method_signature += arg + "&" + elif arg == "int": + method_signature += "int64_t " elif arg == "float": method_signature += "double " elif is_primitive(arg): @@ -594,6 +596,8 @@ def generate_icall_implementation(icalls): if is_core_type(arg): method_signature += arg + "& " + elif arg == "int": + method_signature += "int64_t " elif arg == "float": method_signature += "double " elif is_primitive(arg): From ec5d718191aff1fea906d8a03b0fc4100c77afd5 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 17 Nov 2018 18:25:12 +0200 Subject: [PATCH 2/2] Fix TagDB registration for classes with underscore in the name. --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 80bc0b9..c26c9eb 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -684,7 +684,7 @@ def generate_type_registry(classes): if base_class_name == "": base_class_type_hash = "0" - source.append("\tgodot::_TagDB::register_global_type(\"" + class_name + "\", " + class_type_hash + ", " + base_class_type_hash + ");") + source.append("\tgodot::_TagDB::register_global_type(\"" + c["name"] + "\", " + class_type_hash + ", " + base_class_type_hash + ");") source.append("}")