summaryrefslogtreecommitdiff
path: root/core/bind
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-07-13 14:41:10 -0300
committerGeorge Marques <george@gmarqu.es>2017-07-13 14:41:10 -0300
commit0f765c86e5b7fc771f5559b9e46999bd8e6239aa (patch)
tree63a7c4d2e2f20892f2fb7d37b491ec95b2a74201 /core/bind
parentfca9c75f2b002f3bdcec086499e2ea07b86cf4a1 (diff)
Add GZIP compression support
- Fix a wrong call in PoolByteArray::compress
Diffstat (limited to 'core/bind')
-rw-r--r--core/bind/core_bind.cpp1
-rw-r--r--core/bind/core_bind.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index e863078a48..a5ec9c1afc 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -1780,6 +1780,7 @@ void _File::_bind_methods() {
BIND_CONSTANT(COMPRESSION_FASTLZ);
BIND_CONSTANT(COMPRESSION_DEFLATE);
BIND_CONSTANT(COMPRESSION_ZSTD);
+ BIND_CONSTANT(COMPRESSION_GZIP);
}
_File::_File() {
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h
index f72f665d9e..ec4fd3f476 100644
--- a/core/bind/core_bind.h
+++ b/core/bind/core_bind.h
@@ -372,7 +372,8 @@ public:
enum CompressionMode {
COMPRESSION_FASTLZ = Compression::MODE_FASTLZ,
COMPRESSION_DEFLATE = Compression::MODE_DEFLATE,
- COMPRESSION_ZSTD = Compression::MODE_ZSTD
+ COMPRESSION_ZSTD = Compression::MODE_ZSTD,
+ COMPRESSION_GZIP = Compression::MODE_GZIP
};
Error open_encrypted(const String &p_path, int p_mode_flags, const Vector<uint8_t> &p_key);