diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-08-26 08:42:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 08:42:06 -0300 |
commit | 34e286d6a3efd101f04e7bcc84cea33a8d39452d (patch) | |
tree | b51d3c0274430f559be9eab5a592149da7ed6f8a /core/io/config_file.cpp | |
parent | 6e87d628735cb201cb3de49a723baaf60d9c942d (diff) | |
parent | 96f8254b24109884bdc3f6a7e224a8045b27ee15 (diff) |
Merge pull request #52077 from reduz/error-ret-doc
Implement error return documentation
Diffstat (limited to 'core/io/config_file.cpp')
-rw-r--r-- | core/io/config_file.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index aeaf25f321..55793aa5a4 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -315,6 +315,8 @@ void ConfigFile::_bind_methods() { ClassDB::bind_method(D_METHOD("parse", "data"), &ConfigFile::parse); ClassDB::bind_method(D_METHOD("save", "path"), &ConfigFile::save); + BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN); + ClassDB::bind_method(D_METHOD("load_encrypted", "path", "key"), &ConfigFile::load_encrypted); ClassDB::bind_method(D_METHOD("load_encrypted_pass", "path", "password"), &ConfigFile::load_encrypted_pass); |