summaryrefslogtreecommitdiff
path: root/editor/editor_settings.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-10-05 15:34:34 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-10-05 15:34:34 -0300
commit3d87b70f7a8cadaab581c481fcc51622e8043ee0 (patch)
tree0dcf539804decaf77f74086774a32c64872e7c11 /editor/editor_settings.h
parent928efe06d672d8afeb595f75878746a51e4dc2ce (diff)
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
Diffstat (limited to 'editor/editor_settings.h')
-rw-r--r--editor/editor_settings.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_settings.h b/editor/editor_settings.h
index 19cf367d57..c5d2670650 100644
--- a/editor/editor_settings.h
+++ b/editor/editor_settings.h
@@ -129,7 +129,11 @@ public:
void set_manually(const StringName &p_name, const Variant &p_value, bool p_emit_signal = false) {
_set(p_name, p_value, p_emit_signal);
}
- bool has(String p_var) const;
+
+ void set_setting(const String &p_setting, const Variant &p_value);
+ Variant get_setting(const String &p_setting) const;
+
+ bool has_setting(String p_var) const;
static EditorSettings *get_singleton();
void erase(String p_var);
String get_settings_path() const;