C#: Fix bindings generator for methods that return signals

This commit is contained in:
Raul Santos 2022-12-10 01:42:36 +01:00
parent bc5d67c613
commit 1ab4f26cc4
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

View file

@ -3651,7 +3651,7 @@ void BindingsGenerator::_populate_builtin_type_interfaces() {
itype.cs_type = itype.proxy_name; itype.cs_type = itype.proxy_name;
itype.cs_in_expr = "%0"; itype.cs_in_expr = "%0";
itype.c_in = "%5using %0 %1_in = " C_METHOD_MANAGED_TO_SIGNAL "(in %1);\n"; itype.c_in = "%5using %0 %1_in = " C_METHOD_MANAGED_TO_SIGNAL "(in %1);\n";
itype.c_out = "%5return " C_METHOD_MANAGED_FROM_SIGNAL "(&%1);\n"; itype.c_out = "%5return " C_METHOD_MANAGED_FROM_SIGNAL "(in %1);\n";
itype.c_arg_in = "&%s_in"; itype.c_arg_in = "&%s_in";
itype.c_type = "godot_signal"; itype.c_type = "godot_signal";
itype.c_type_in = "in " + itype.cs_type; itype.c_type_in = "in " + itype.cs_type;