summaryrefslogtreecommitdiffstats
path: root/core/os/os.h
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/os/os.h
parent9cf44c1c53f03b67143e606ab3d56680d73ac2c9 (diff)
downloadredot-engine-af9c67db0c998bbd6f0de1ab0af98f9e615e6029.tar.gz
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/os/os.h')
-rw-r--r--core/os/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index d7a1512e39..c72696fe37 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -338,7 +338,7 @@ public:
virtual String get_locale() const;
- String get_safe_application_name() const;
+ String get_safe_dir_name(const String &p_dir_name, bool p_allow_dir_separator = false) const;
virtual String get_godot_dir_name() const;
virtual String get_data_path() const;