You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Mono: Use "UnnamedProject" if application/config/name is empty
This commit is contained in:
@@ -122,7 +122,14 @@ private:
|
||||
#ifdef TOOLS_ENABLED
|
||||
mono_solutions_dir = mono_user_dir.plus_file("solutions");
|
||||
build_logs_dir = mono_user_dir.plus_file("build_logs");
|
||||
String base_path = String("res://") + ProjectSettings::get_singleton()->get("application/config/name");
|
||||
|
||||
String name = ProjectSettings::get_singleton()->get("application/config/name");
|
||||
if (name.empty()) {
|
||||
name = "UnnamedProject";
|
||||
}
|
||||
|
||||
String base_path = String("res://") + name;
|
||||
|
||||
sln_filepath = ProjectSettings::get_singleton()->globalize_path(base_path + ".sln");
|
||||
csproj_filepath = ProjectSettings::get_singleton()->globalize_path(base_path + ".csproj");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user