diff options
| author | robfram | 2018-03-12 21:28:41 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-28 17:04:20 +0200 |
| commit | 141e389c3f80dcb71bbf86c67b9d2ea83652fa0c (patch) | |
| tree | e1bdc02b3d02dc9ce12a707028d9526fb1af792d /core/project_settings.cpp | |
| parent | 72350eebb29b9c08be0a0d38e3e5e819c1b31d62 (diff) | |
| download | godot-141e389c3f80dcb71bbf86c67b9d2ea83652fa0c.tar.gz godot-141e389c3f80dcb71bbf86c67b9d2ea83652fa0c.tar.zst godot-141e389c3f80dcb71bbf86c67b9d2ea83652fa0c.zip | |
Diffstat (limited to 'core/project_settings.cpp')
| -rw-r--r-- | core/project_settings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 427fa77e6..3eb8ad7bf 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -692,7 +692,10 @@ Error ProjectSettings::_save_settings_text(const String &p_file, const Map<Strin String vstr; VariantWriter::write_to_string(value, vstr); - file->store_string(F->get() + "=" + vstr + "\n"); + if (F->get().find(" ") != -1) + file->store_string(F->get().quote() + "=" + vstr + "\n"); + else + file->store_string(F->get() + "=" + vstr + "\n"); } } |
