mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
6cefb63e2e
only dumps the file names/sizes and segs if it's used incorrectly, but it's a start.
21 lines
374 B
C
21 lines
374 B
C
#include <stdio.h>
|
|
|
|
#include <QF/hash.h>
|
|
#include <QF/pak.h>
|
|
|
|
typedef struct pack_s {
|
|
char *filename;
|
|
FILE *handle;
|
|
int numfiles;
|
|
int files_size;
|
|
dpackfile_t *files;
|
|
hashtab_t *file_hash;
|
|
} pack_t;
|
|
|
|
pack_t *pack_new (const char *name);
|
|
|
|
void pack_del (pack_t *pack);
|
|
|
|
pack_t *pack_open (const char *name);
|
|
|
|
void pack_close (pack_t *pack);
|