Rename File::get_len() get_length()
This commit is contained in:
parent
313e1f62bb
commit
da5d7db610
59 changed files with 101 additions and 101 deletions
|
|
@ -3479,7 +3479,7 @@ void DisplayServerOSX::set_native_icon(const String &p_filename) {
|
|||
ERR_FAIL_COND(!f);
|
||||
|
||||
Vector<uint8_t> data;
|
||||
uint64_t len = f->get_len();
|
||||
uint64_t len = f->get_length();
|
||||
data.resize(len);
|
||||
f->get_buffer((uint8_t *)&data.write[0], len);
|
||||
memdelete(f);
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ void EditorExportPlatformOSX::_make_icon(const Ref<Image> &p_icon, Vector<uint8_
|
|||
}
|
||||
|
||||
int ofs = data.size();
|
||||
uint64_t len = f->get_len();
|
||||
uint64_t len = f->get_length();
|
||||
data.resize(data.size() + len + 8);
|
||||
f->get_buffer(&data.write[ofs + 8], len);
|
||||
memdelete(f);
|
||||
|
|
@ -689,8 +689,8 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
|
|||
if (iconpath.get_extension() == "icns") {
|
||||
FileAccess *icon = FileAccess::open(iconpath, FileAccess::READ);
|
||||
if (icon) {
|
||||
data.resize(icon->get_len());
|
||||
icon->get_buffer(&data.write[0], icon->get_len());
|
||||
data.resize(icon->get_length());
|
||||
icon->get_buffer(&data.write[0], icon->get_length());
|
||||
icon->close();
|
||||
memdelete(icon);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue