diff options
author | Unknown <m.hilbrunner@gmail.com> | 2017-10-27 21:22:54 +0200 |
---|---|---|
committer | Unknown <m.hilbrunner@gmail.com> | 2017-10-27 21:22:54 +0200 |
commit | a2247d45fcc1211937bf5103b1fe575720a1d95e (patch) | |
tree | 682feec695b0fabc2715e7e0cb4b7cfe2307b92d /modules/mono/editor | |
parent | 70c3ea5a8274739f0c4ae0377940b303fb83e8bf (diff) |
Mono: Use "UnnamedProject" if application/config/name is empty
Diffstat (limited to 'modules/mono/editor')
-rw-r--r-- | modules/mono/editor/godotsharp_editor.cpp | 4 |
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()) { |