diff options
| author | Juan Linietsky | 2017-10-05 15:34:34 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-10-05 15:34:34 -0300 |
| commit | 3d87b70f7a8cadaab581c481fcc51622e8043ee0 (patch) | |
| tree | 0dcf539804decaf77f74086774a32c64872e7c11 /core/project_settings.h | |
| parent | 928efe06d672d8afeb595f75878746a51e4dc2ce (diff) | |
| download | godot-3d87b70.tar.gz godot-3d87b70.tar.zst godot-3d87b70.zip | |
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
Diffstat (limited to 'core/project_settings.h')
| -rw-r--r-- | core/project_settings.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/project_settings.h b/core/project_settings.h index 718ab2a01..ea6034dc8 100644 --- a/core/project_settings.h +++ b/core/project_settings.h @@ -119,7 +119,10 @@ protected: static void _bind_methods(); public: - 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; String localize_path(const String &p_path) const; String globalize_path(const String &p_path) const; |
