You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Support for file not found in ConfigFile::Load and handle a few specific cases
EditorSettings::set_project_metadata: creates project_metadata.cfg if it doesn't exist EditorPlugin::get_config: removed (not used) Fixes #31444
This commit is contained in:
@@ -324,13 +324,6 @@ void EditorPlugin::remove_autoload_singleton(const String &p_name) {
|
||||
EditorNode::get_singleton()->get_project_settings()->get_autoload_settings()->autoload_remove(p_name);
|
||||
}
|
||||
|
||||
Ref<ConfigFile> EditorPlugin::get_config() {
|
||||
Ref<ConfigFile> cf = memnew(ConfigFile);
|
||||
Error err = cf->load(_dir_cache.plus_file("plugin.cfg"));
|
||||
ERR_FAIL_COND_V(err != OK, cf);
|
||||
return cf;
|
||||
}
|
||||
|
||||
ToolButton *EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) {
|
||||
ERR_FAIL_NULL_V(p_control, NULL);
|
||||
return EditorNode::get_singleton()->add_bottom_panel_item(p_title, p_control);
|
||||
|
||||
Reference in New Issue
Block a user