diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-05-11 16:59:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 16:59:31 +0200 |
commit | 2fd73bd32e0b0d153945bc28576b154af3342627 (patch) | |
tree | 942928f4418f46c7e1f76330089c2f1ab5fc3421 /editor/export_template_manager.cpp | |
parent | d68c355145d5c07070fc999eedf8c973d8c70fbe (diff) | |
parent | d36c5514d3893578f1c8cce4d0a2256abfcdd1ed (diff) |
Merge pull request #60943 from bruvzg/fix_zipio
Diffstat (limited to 'editor/export_template_manager.cpp')
-rw-r--r-- | editor/export_template_manager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index 3526b4ce4c..68796683d2 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -374,7 +374,8 @@ void ExportTemplateManager::_install_file() { } bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_skip_progress) { - zlib_filefunc_def io = zipio_create_io(); + Ref<FileAccess> io_fa; + zlib_filefunc_def io = zipio_create_io(&io_fa); unzFile pkg = unzOpen2(p_file.utf8().get_data(), &io); if (!pkg) { @@ -676,7 +677,8 @@ Error ExportTemplateManager::install_android_template_from_file(const String &p_ // Uncompress source template. - zlib_filefunc_def io = zipio_create_io(); + Ref<FileAccess> io_fa; + zlib_filefunc_def io = zipio_create_io(&io_fa); unzFile pkg = unzOpen2(p_file.utf8().get_data(), &io); ERR_FAIL_COND_V_MSG(!pkg, ERR_CANT_OPEN, "Android sources not in ZIP format."); |