You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add ability to edit editor feature profiles
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
This commit is contained in:
@@ -832,6 +832,13 @@ void EditorSettings::create() {
|
||||
} else {
|
||||
dir->change_dir("..");
|
||||
}
|
||||
|
||||
if (dir->change_dir("feature_profiles") != OK) {
|
||||
dir->make_dir("feature_profiles");
|
||||
} else {
|
||||
dir->change_dir("..");
|
||||
}
|
||||
|
||||
_create_script_templates(dir->get_current_dir().plus_file("script_templates"));
|
||||
|
||||
if (dir->change_dir("projects") != OK) {
|
||||
@@ -1157,6 +1164,11 @@ String EditorSettings::get_cache_dir() const {
|
||||
return cache_dir;
|
||||
}
|
||||
|
||||
String EditorSettings::get_feature_profiles_dir() const {
|
||||
|
||||
return get_settings_dir().plus_file("feature_profiles");
|
||||
}
|
||||
|
||||
// Metadata
|
||||
|
||||
void EditorSettings::set_project_metadata(const String &p_section, const String &p_key, Variant p_data) {
|
||||
|
||||
Reference in New Issue
Block a user