summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-29 01:36:46 +0200
committerest31 <MTest31@outlook.com>2015-05-05 18:19:14 +0200
commit1268e65aa5a804a249c9da5d0e32e4b2c90d1f0c (patch)
tree9feecbbe9941ff74276fbcebead57eca15188323 /tools
parentbc3c14a76b988a50e65328a932316c2e630a7ae6 (diff)
Set settings directory variable when loading settings fails
This makes export work when you are first running godot for your user.
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/editor_settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp
index 9a4505efed..f49d3b496d 100644
--- a/tools/editor/editor_settings.cpp
+++ b/tools/editor/editor_settings.cpp
@@ -264,6 +264,7 @@ void EditorSettings::create() {
singleton = Ref<EditorSettings>( memnew( EditorSettings ) );
singleton->config_file_path=config_file_path;
+ singleton->settings_path=config_path+"/"+config_dir;
singleton->_load_defaults();
singleton->scan_plugins();