Commit Graph

14 Commits

Author SHA1 Message Date
Andy McFadden
3ccb2c16f1 Fixed a couple of obscure bugs that cropped up when trying to recompress
a GSHK-added zero-byte file with a "fake" thread.
2004-08-22 23:59:47 +00:00
Andy McFadden
bb09a12f75 Updated copyright notices (from 2003 to 2004).
Incremented version to 2.0.2.
2004-03-10 21:26:29 +00:00
Andy McFadden
1af00b27d0 Allow archives with MasterEOF==0, since it appears an old version of
ShrinkIt created them.  We continue to block MasterEOF==48, which was
the original cause for concern.
2004-03-09 18:31:22 +00:00
Andy McFadden
38dafdc774 The "actualThreadEOF" value was getting set incorrectly on newly-added
message threads.  This didn't cause any problems with the archive, but
if you extracted the thread in question without reopening the archive
you ended up getting the whole pre-sized buffer instead of just the part
with data in it.

Load the TOC if needed in Nu_ExtractThread.

When thread extraction fails, don't send an update to the progress
updater if there isn't a progress updater.
2003-03-06 01:37:47 +00:00
Andy McFadden
36f47b866c Fixed a bug related to "mask dataless" mode where archives weren't getting
reconstructed properly.

Altered "fake" thread initialization to have a *really* invalid file offset
in case somebody tries to use it for math.
2003-02-24 06:31:11 +00:00
Andy McFadden
a55cfee11f Turn off EOL conversion when extracting disk images. 2003-02-23 00:31:02 +00:00
Andy McFadden
1169554de3 Changed the DataSource API to take resource release callback pointers
instead of a "doClose" argument.  NufxLib should no longer try to free
anything allocated by the application (or vice-versa).

The DataSource "copy" function now does refcounting instead of copying.
This was done as part of cleaning up some memory leaks in the DataSource
code.

The samples were all updated with the changes to the API (and the
occasional minor valgrind-inspired bug fix).
2003-02-09 01:53:51 +00:00
Andy McFadden
ba99fa7372 Updated copyright notices. 2003-02-08 22:43:24 +00:00
Andy McFadden
dbf47b585f Added "abort" to progress states, so user cancellations can be reported
properly.
2003-02-08 22:19:50 +00:00
Andy McFadden
3841a233b2 Added support for kNuValMaskDataless, which hides records with no data
threads by giving them an empty data fork (and, if it's an extended
file, an empty resource fork).  This allows applications to simply
ignore the bogus records and let NufxLib do the dirty work.

Fixed dataless thread handling for the original (non-masked) case.  We
weren't creating empty resource forks when required, so a dataless
record with a forked-file storage type wouldn't be recreated properly
if extracted and then added.

Added version numbers to the public header, so applications can test
for "compiled" version vs "linked" version.
2003-01-10 22:47:24 +00:00
Andy McFadden
8fefff8cfa Update copyright notices and legalese. 2002-10-11 20:15:50 +00:00
Andy McFadden
768a224513 Reformatted files to use spaces instead of hard tabs. No substantitve changes. 2002-09-21 00:49:42 +00:00
Andy McFadden
342e08493b Fix broken 140K DOS3.3 disk archives created by old GSHK.
Version upped to v1.0.1.
2000-05-23 01:59:41 +00:00
cvs
5615fa90d4 Imported sources. 2000-05-23 01:55:31 +00:00