reading a file in the zip archive

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
bappy

reading a file in the zip archive

Post by bappy »

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?
Post Reply