mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
C#: Unify project name handling and fix issues with the handling of some special characters
Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
parent
33957aee69
commit
92f13ba9ea
12 changed files with 71 additions and 76 deletions
|
@ -62,6 +62,7 @@
|
|||
#include "signal_awaiter_utils.h"
|
||||
#include "utils/macros.h"
|
||||
#include "utils/naming_utils.h"
|
||||
#include "utils/path_utils.h"
|
||||
#include "utils/string_utils.h"
|
||||
|
||||
#define CACHED_STRING_NAME(m_var) (CSharpLanguage::get_singleton()->get_string_names().m_var)
|
||||
|
@ -740,11 +741,7 @@ bool CSharpLanguage::is_assembly_reloading_needed() {
|
|||
return false; // Already up to date
|
||||
}
|
||||
} else {
|
||||
String assembly_name = GLOBAL_GET("dotnet/project/assembly_name");
|
||||
|
||||
if (assembly_name.is_empty()) {
|
||||
assembly_name = ProjectSettings::get_singleton()->get_safe_project_name();
|
||||
}
|
||||
String assembly_name = path::get_csharp_project_name();
|
||||
|
||||
assembly_path = GodotSharpDirs::get_res_temp_assemblies_dir()
|
||||
.path_join(assembly_name + ".dll");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue