[mono] fix signals parameter retrieval
(cherry picked from commit 7a72395412
)
This commit is contained in:
parent
6635f2a108
commit
81eb60434a
|
@ -230,13 +230,15 @@ String GDMonoMethod::get_signature_desc(bool p_namespaces) const {
|
|||
}
|
||||
|
||||
void GDMonoMethod::get_parameter_names(Vector<StringName> &names) const {
|
||||
const char *_names = memnew_arr(char, params_count);
|
||||
mono_method_get_param_names(mono_method, &_names);
|
||||
if (params_count > 0) {
|
||||
const char **_names = memnew_arr(const char *, params_count);
|
||||
mono_method_get_param_names(mono_method, _names);
|
||||
for (int i = 0; i < params_count; ++i) {
|
||||
names.push_back(StringName(&_names[i]));
|
||||
names.push_back(StringName(_names[i]));
|
||||
}
|
||||
memdelete_arr(_names);
|
||||
}
|
||||
}
|
||||
|
||||
void GDMonoMethod::get_parameter_types(Vector<ManagedType> &types) const {
|
||||
for (int i = 0; i < param_types.size(); ++i) {
|
||||
|
|
Loading…
Reference in New Issue