This commit is contained in:
Spartan322
2025-06-20 02:38:24 -04:00
699 changed files with 21288 additions and 9565 deletions

View File

@@ -687,8 +687,14 @@ void CSharpLanguage::reload_assemblies(bool p_soft_reload) {
if (success) {
ManagedCallable::instances_pending_reload.insert(managed_callable, serialized_data);
} else if (OS::get_singleton()->is_stdout_verbose()) {
OS::get_singleton()->print("Failed to serialize delegate\n");
} else {
if (OS::get_singleton()->is_stdout_verbose()) {
OS::get_singleton()->print("Failed to serialize delegate.\n");
}
// We failed to serialize the delegate but we still have to release it;
// otherwise, we won't be able to unload the assembly.
managed_callable->release_delegate_handle();
}
}
}