diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-20 13:59:46 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-21 08:32:55 +0200 |
commit | b49226e0850d6dd30801881433bf3fef1f1608b1 (patch) | |
tree | 4db5701d7e4557d10fc6d8ce13cd67ac923edd4a /core/io | |
parent | fb5e8b509b859f9e81d7b7c63086fb7e8dae5dd2 (diff) |
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
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/config_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index 70bb816acd..9063e028be 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -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); } |