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:
parent
8e8c36019c
commit
f43515eaf7
9 changed files with 17 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
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
|
||||
-------
|
||||
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-01-28 - Major changes:
|
||||
- Bug fix: there was a big problem with directory names.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
This folder contains the zip extraction classes of the OSDaB project.
|
||||
These classes are distributed under the GPL license (see the file
|
||||
LICENSE.GPL in this folder). The source files are included unmodified as
|
||||
of 2007-07-24 with the examples folder left out.
|
||||
LICENSE.GPL in this folder).
|
||||
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/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
** Filename: unzip.cpp
|
||||
** Last updated [dd/mm/yyyy]: 28/01/2007
|
||||
** Last updated [dd/mm/yyyy]: 07/09/2008
|
||||
**
|
||||
** pkzip 2.0 decompression.
|
||||
**
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
@ -761,7 +761,8 @@ UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory()
|
|||
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)
|
||||
return UnZip::InvalidArchive;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
@ -86,7 +86,7 @@ public:
|
|||
File, Directory
|
||||
};
|
||||
|
||||
typedef struct ZipEntry
|
||||
struct ZipEntry
|
||||
{
|
||||
ZipEntry();
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** 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/).
|
||||
**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue