diff options
| author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-25 07:58:49 +0100 |
|---|---|---|
| committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-25 11:54:28 +0100 |
| commit | da5d7db6100955922e08ee99a02f827214ed8281 (patch) | |
| tree | 2e6c19a493c20e356b01a2a79f10e63c6e75ff56 /modules/gdnative/pluginscript | |
| parent | 313e1f62bb4ed85041bcd9290ec76660878fcd6b (diff) | |
| download | redot-engine-da5d7db6100955922e08ee99a02f827214ed8281.tar.gz | |
Rename File::get_len() get_length()
Diffstat (limited to 'modules/gdnative/pluginscript')
| -rw-r--r-- | modules/gdnative/pluginscript/pluginscript_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_script.cpp b/modules/gdnative/pluginscript/pluginscript_script.cpp index a0d7fbf726..93fe3b3992 100644 --- a/modules/gdnative/pluginscript/pluginscript_script.cpp +++ b/modules/gdnative/pluginscript/pluginscript_script.cpp @@ -441,7 +441,7 @@ Error PluginScript::load_source_code(const String &p_path) { FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err); ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + p_path + "'."); - uint64_t len = f->get_len(); + uint64_t len = f->get_length(); sourcef.resize(len + 1); uint8_t *w = sourcef.ptrw(); uint64_t r = f->get_buffer(w, len); |
