diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2022-08-23 02:47:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 02:47:55 +0200 |
commit | ebd966acee25f3e72c55576ebf82392bb9130911 (patch) | |
tree | 7a0779af9fa17d549c06e0f4b55b80b07e37a8e7 /modules/mono | |
parent | a471cd950a9a3e104aec59dbe4d6100a131f3b79 (diff) | |
parent | c56b157c61ebaa390de9e2e9763f928442cccee7 (diff) |
Merge pull request #64725 from raulsntos/dotnet6-assembly-exists
Avoid trying to load non-existent assembly
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index f746d63ce5..0532cc915b 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -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); |