Merge pull request #64725 from raulsntos/dotnet6-assembly-exists

Avoid trying to load non-existent assembly
This commit is contained in:
Ignacio Roldán Etcheverry 2022-08-23 02:47:55 +02:00 committed by GitHub
commit ebd966acee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,6 +517,10 @@ bool GDMono::_load_project_assembly() {
.plus_file(assembly_name + ".dll");
assembly_path = ProjectSettings::get_singleton()->globalize_path(assembly_path);
if (!FileAccess::exists(assembly_path)) {
return false;
}
String loaded_assembly_path;
bool success = plugin_callbacks.LoadProjectAssemblyCallback(assembly_path.utf16(), &loaded_assembly_path);