quakeforge/tools/pak/pak.c
Bill Currie 6cefb63e2e get back to work on creating a good command line pak file util. currently
only dumps the file names/sizes and segs if it's used incorrectly, but it's
a start.
2002-03-12 23:45:36 +00:00

14 lines
261 B
C

#include "pakfile.h"
int
main (int argc, char **argv)
{
pack_t *pack;
int i;
pack = pack_open (argv[1]);
for (i = 0; i < pack->numfiles; i++)
printf ("%6d %s\n", pack->files[i].filelen, pack->files[i].name);
pack_close (pack);
return 0;
}