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:
PouleyKetchoupp
2019-08-20 13:59:46 +02:00
parent fb5e8b509b
commit b49226e085
7 changed files with 23 additions and 20 deletions

View File

@ -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);
}