From 26f48a48fd816e5534308d36e78e64949c9b47f0 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 15 Aug 2023 16:50:28 +0400 Subject: [PATCH] Compress save file (#986) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adding gzip compression for improving storage use and backward compatibility. (#984) * Basic gzip an gunzip on load and save. * refactor file save type to .gz and update the data in ui. --------- Co-authored-by: Azgaar * refactor: cleanup, change wording * feat: streamline saving options * fix: fixes --------- Co-authored-by: Efruz Yıldırır <30903352+yldrefruz@users.noreply.github.com> --- index.html | 70 +++++++++++-------- main.js | 30 +++++---- modules/dynamic/auto-update.js | 2 +- modules/io/load.js | 43 +++++++++--- modules/io/save.js | 120 +++++++++++++++++++++------------ modules/ui/heightmap-editor.js | 2 +- modules/ui/hotkeys.js | 6 +- modules/ui/options.js | 6 +- utils/polyfills.js | 16 +++++ versioning.js | 6 +- 10 files changed, 197 insertions(+), 104 deletions(-) diff --git a/index.html b/index.html index 373bb7b0..7a1f782c 100644 --- a/index.html +++ b/index.html @@ -1775,6 +1775,18 @@ + + + Onload behavior + + + + + + Speaker voice @@ -2329,8 +2341,8 @@
- - + +
@@ -5884,37 +5896,42 @@