1
0
Fork 0
forked from len0rd/rockbox

Update OSDaB Zip class to most current version from the projects svn repo (r7).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20802 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-04-26 11:27:23 +00:00
parent 8e8c36019c
commit f43515eaf7
9 changed files with 17 additions and 14 deletions

View file

@ -1,5 +1,5 @@
The *.cpp and *.h files in this archive are The *.cpp and *.h files in this archive are
Copyright (C) 2007 Angius Fabrizio (blue_death@users.sourceforge.net) Copyright (C) 2007-2008 Angius Fabrizio (blue_death@users.sourceforge.net)
You may use, distribute and copy the files under the terms of You may use, distribute and copy the files under the terms of
GNU General Public License version 2 (see the file LICENSE.GPL for details) GNU General Public License version 2 (see the file LICENSE.GPL for details)
@ -27,6 +27,7 @@ Please refer to the example application's main.cpp file or to the class comments
history history
------- -------
2008-09-97 - Bug fix: end of central directory was sometimes not being found when the archive had a comment.
2007-02-01 - New IgnorePaths compression option and two more "addDirectoryContents()" convenience methods to use this option. 2007-02-01 - New IgnorePaths compression option and two more "addDirectoryContents()" convenience methods to use this option.
2007-01-28 - Major changes: 2007-01-28 - Major changes:
- Bug fix: there was a big problem with directory names. - Bug fix: there was a big problem with directory names.

View file

@ -1,7 +1,8 @@
This folder contains the zip extraction classes of the OSDaB project. This folder contains the zip extraction classes of the OSDaB project.
These classes are distributed under the GPL license (see the file These classes are distributed under the GPL license (see the file
LICENSE.GPL in this folder). The source files are included unmodified as LICENSE.GPL in this folder).
of 2007-07-24 with the examples folder left out. The source files have been last synced with the projects svn repo
at http://osdab.googlecode.com/svn/trunk revision 7 on 2009-04-26.
Details at http://osdab.sourceforge.net/snippets/zip.php Details at http://code.google.com/p/osdab/

View file

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
** Filename: unzip.cpp ** Filename: unzip.cpp
** Last updated [dd/mm/yyyy]: 28/01/2007 ** Last updated [dd/mm/yyyy]: 07/09/2008
** **
** pkzip 2.0 decompression. ** pkzip 2.0 decompression.
** **
@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **
@ -761,7 +761,8 @@ UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory()
break; break;
} }
offset -= UNZIP_EOCD_SIZE; // TODO: This is very slow and only a temporary bug fix. Need some pattern matching algorithm here.
offset -= 1 /*UNZIP_EOCD_SIZE*/;
if (offset <= 0) if (offset <= 0)
return UnZip::InvalidArchive; return UnZip::InvalidArchive;

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **
@ -86,7 +86,7 @@ public:
File, Directory File, Directory
}; };
typedef struct ZipEntry struct ZipEntry
{ {
ZipEntry(); ZipEntry();

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **

View file

@ -8,7 +8,7 @@
** (mainly Info-Zip and Gilles Vollant's minizip). ** (mainly Info-Zip and Gilles Vollant's minizip).
** Compression and decompression actually uses the zlib library. ** Compression and decompression actually uses the zlib library.
** **
** Copyright (C) 2007 Angius Fabrizio. All rights reserved. ** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
** **
** This file is part of the OSDaB project (http://osdab.sourceforge.net/). ** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
** **