int ignorecase; // PK3 ignores case
int numfiles;
packfile_t *files;
- struct pack_s *next;
} pack_t;
mempool_t *fs_mempool;
-pack_t *packlist = NULL;
-
searchpath_t *fs_searchpaths = NULL;
#define MAX_FILES_IN_PACK 65536
pack->handle = packhandle;
pack->numfiles = eocd.nbentries;
pack->files = (packfile_t *)Mem_Alloc(fs_mempool, eocd.nbentries * sizeof(packfile_t));
- pack->next = packlist;
- packlist = pack;
real_nb_files = PK3_BuildFileList (pack, &eocd);
if (real_nb_files < 0)
pack->handle = packhandle;
pack->numfiles = 0;
pack->files = (packfile_t *)Mem_Alloc(fs_mempool, numpackfiles * sizeof(packfile_t));
- pack->next = packlist;
- packlist = pack;
// parse the directory
for (i = 0;i < numpackfiles;i++)