Mail Archives: djgpp/1998/01/30/14:49:30
On Thu, 29 Jan 1998 20:49:21 -0800 in comp.os.msdos.djgpp Ryan Bright
<rmb56313 AT csun DOT edu> wrote:
: AFAIK, however, if you're not going take advantage of the compression,
: password, or datafile access capabilities of packfiles, there's really
: no reason to use them at all. It would only decrease the portability of
: your code.
True, but there are benefits, particularly if you're using Allegro for
everything anyway. Shawn wrote all of the code for Allegro using
packfile functions, even the code to load BMP, PCX, MID, WAV, VOC, etc
files; as a consequence, when he implemented the `#' extension to the
packfile functions it immediately applied to all of these file loaders
too.
: Also, it will add a flag (F_NOPACK_MAGIC) to the beginning
: of the file, stating that it is, in fact, not compressed.
In fact that's not true. The flag is only added (1) if the file is
opened for writing, and (2) if the `!' flag is explicitly given
(i.e. only if you open a file for writing and say "Please put the
magic byte on!").
: pf = pack_fopen("/autoexec.bat", "rt!");
The `t' flag is not understood by packfile functions, incidentally.
: > *** Remove SPAMGUARD ***
: > *** when replying! ***
: No!
Save Usenet! Fight anti-spammers! :)
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -