From b49226e0850d6dd30801881433bf3fef1f1608b1 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Tue, 20 Aug 2019 13:59:46 +0200 Subject: 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 --- core/io/config_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io') 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); } -- cgit v1.2.3