summaryrefslogtreecommitdiff
path: root/core/project_settings.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-11-26 19:00:53 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-11-26 19:02:32 +0100
commitaf9c67db0c998bbd6f0de1ab0af98f9e615e6029 (patch)
tree018b3b3f6044e5c02cbaa1b44e01495e0013361c /core/project_settings.cpp
parent9cf44c1c53f03b67143e606ab3d56680d73ac2c9 (diff)
Allow customizing user:// path (folder in OS::get_data_path())
This allows to specify any valid folder name (including with subfolders) to use as user:// on all platforms. The folder is constrained to the platform-specific OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to). Fixes #13236.
Diffstat (limited to 'core/project_settings.cpp')
-rw-r--r--core/project_settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp
index 13340535b5..67b081de34 100644
--- a/core/project_settings.cpp
+++ b/core/project_settings.cpp
@@ -891,7 +891,8 @@ ProjectSettings::ProjectSettings() {
custom_prop_info["application/run/main_scene"] = PropertyInfo(Variant::STRING, "application/run/main_scene", PROPERTY_HINT_FILE, "tscn,scn,res");
GLOBAL_DEF("application/run/disable_stdout", false);
GLOBAL_DEF("application/run/disable_stderr", false);
- GLOBAL_DEF("application/config/use_shared_user_dir", true);
+ GLOBAL_DEF("application/config/use_custom_user_dir", false);
+ GLOBAL_DEF("application/config/custom_user_dir_name", "");
key.instance();
key->set_scancode(KEY_ENTER);