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:
@ -201,7 +201,7 @@ Error ConfigFile::load(const String &p_path) {
|
||||
FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err);
|
||||
|
||||
if (!f)
|
||||
return ERR_CANT_OPEN;
|
||||
return err;
|
||||
|
||||
return _internal_load(p_path, f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user