From fe1f8d545f648c0dc39ab798f2ea9f256a62e8ff Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 26 Apr 2009 13:05:33 +0000 Subject: Let unzip class accept files created by Info-Zip 3.0 instead of rejecting the files without reporting an error. Seems to not cause negative side effects but further investigation needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20803 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/zip/unzip.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rbutil') diff --git a/rbutil/rbutilqt/zip/unzip.cpp b/rbutil/rbutilqt/zip/unzip.cpp index a0a60db84b..8c4028b40c 100644 --- a/rbutil/rbutilqt/zip/unzip.cpp +++ b/rbutil/rbutilqt/zip/unzip.cpp @@ -128,7 +128,12 @@ versions from 2.1 to 2.7 may use unsupported compression methods versions after 2.7 may have an incompatible header format */ -#define UNZIP_VERSION 0x1B +/* NOTE: changed to 0x1e as info-zip 3.0 uses that header type which breaks + * usage. Extraction seems to work fine with the value increased. + * No guarantees though. + */ +//#define UNZIP_VERSION 0x1B +#define UNZIP_VERSION 0x1e //! Full compatibility granted until this version #define UNZIP_VERSION_STRICT 0x14 -- cgit v1.2.3