summaryrefslogtreecommitdiffstats
path: root/platform/javascript/api/javascript_tools_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-05-11 16:59:31 +0200
committerGitHub <noreply@github.com>2022-05-11 16:59:31 +0200
commit2fd73bd32e0b0d153945bc28576b154af3342627 (patch)
tree942928f4418f46c7e1f76330089c2f1ab5fc3421 /platform/javascript/api/javascript_tools_editor_plugin.cpp
parentd68c355145d5c07070fc999eedf8c973d8c70fbe (diff)
parentd36c5514d3893578f1c8cce4d0a2256abfcdd1ed (diff)
downloadredot-engine-2fd73bd32e0b0d153945bc28576b154af3342627.tar.gz
Merge pull request #60943 from bruvzg/fix_zipio
Diffstat (limited to 'platform/javascript/api/javascript_tools_editor_plugin.cpp')
-rw-r--r--platform/javascript/api/javascript_tools_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/api/javascript_tools_editor_plugin.cpp b/platform/javascript/api/javascript_tools_editor_plugin.cpp
index 198af61eff..1507f32375 100644
--- a/platform/javascript/api/javascript_tools_editor_plugin.cpp
+++ b/platform/javascript/api/javascript_tools_editor_plugin.cpp
@@ -64,7 +64,8 @@ void JavaScriptToolsEditorPlugin::_download_zip(Variant p_v) {
}
String resource_path = ProjectSettings::get_singleton()->get_resource_path();
- zlib_filefunc_def io = zipio_create_io();
+ Ref<FileAccess> io_fa;
+ zlib_filefunc_def io = zipio_create_io(&io_fa);
// Name the downloaded ZIP file to contain the project name and download date for easier organization.
// Replace characters not allowed (or risky) in Windows file names with safe characters.