From 0713342c0fbc5983d81e0f18733fa8043dfd295b Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 5 Jul 2020 02:22:48 +0300 Subject: [PATCH] Change "err" variable for HTML5 in OpenSave.save_pro_file() --- src/Autoload/OpenSave.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index 6117c9e27..4b9ebd5f2 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -290,7 +290,7 @@ func save_pxo_file(path : String, autosave : bool, project : Project = Global.cu file.close() if OS.get_name() == "HTML5" and !autosave: - file.open_compressed(path, File.READ, File.COMPRESSION_ZSTD) + err = file.open_compressed(path, File.READ, File.COMPRESSION_ZSTD) if !err: var file_data = Array(file.get_buffer(file.get_len())) JavaScript.eval("download('%s', %s, '');" % [path.get_file(), str(file_data)], true)