i ve got a problem, i would like to read all the bsp in a pk3 file. so this is my code:
IFileSystem * temp=device->getFileSystem();
temp->addZipFileArchive("fichier.pk3");
IFileList *listbsp=temp->createFileList();
for(int i=0;i<listbsp->getFileCount();i++)
{
char file[255];
strcpy(file,listbsp->getFileName(i));
m_ListBsp.AddString(file);
}
listbsp->drop();
The problem is that getfilename() function return the file of the activ directory and not the file that are in the pk3 archive...Is it the good way to do that? is there a bug in the engine?did i miss something?