Skip to content

Commit

Permalink
Merge pull request #64725 from raulsntos/dotnet6-assembly-exists
Browse files Browse the repository at this point in the history
Avoid trying to load non-existent assembly
  • Loading branch information
neikeq authored Aug 23, 2022
2 parents a471cd9 + c56b157 commit ebd966a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mono/mono_gd/gd_mono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ebd966a

Please sign in to comment.