summaryrefslogtreecommitdiff
path: root/modules/mono/editor
diff options
context:
space:
mode:
authorUnknown <m.hilbrunner@gmail.com>2017-10-27 21:22:54 +0200
committerUnknown <m.hilbrunner@gmail.com>2017-10-27 21:22:54 +0200
commita2247d45fcc1211937bf5103b1fe575720a1d95e (patch)
tree682feec695b0fabc2715e7e0cb4b7cfe2307b92d /modules/mono/editor
parent70c3ea5a8274739f0c4ae0377940b303fb83e8bf (diff)
Mono: Use "UnnamedProject" if application/config/name is empty
Diffstat (limited to 'modules/mono/editor')
-rw-r--r--modules/mono/editor/godotsharp_editor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mono/editor/godotsharp_editor.cpp b/modules/mono/editor/godotsharp_editor.cpp
index 30e7653256..ebfbdafeaf 100644
--- a/modules/mono/editor/godotsharp_editor.cpp
+++ b/modules/mono/editor/godotsharp_editor.cpp
@@ -71,6 +71,10 @@ bool GodotSharpEditor::_create_project_solution() {
String path = OS::get_singleton()->get_resource_dir();
String name = ProjectSettings::get_singleton()->get("application/config/name");
+ if (name.empty()) {
+ name = "UnnamedProject";
+ }
+
String guid = CSharpProject::generate_game_project(path, name);
if (guid.length()) {