Using addZipFileArchive with ignorepaths = false

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
madoc
Posts: 32
Joined: Fri Feb 11, 2005 10:43 am

Using addZipFileArchive with ignorepaths = false

Post by madoc »

I'm having a little trouble figureing out how to access files within a zip.
files:
zipfile.zip
skin.xml is a file inside the zip


Psudo code

Code: Select all

/*virtual bool irr::io::IFileSystem::addZipFileArchive  (  const c8 *  filename,  
  bool  ignoreCase = true,  
  bool  ignorePaths = true 
 )  [pure virtual] 
*/
 fsystem->addZipFileArchive("../ui/zipfile.zip",true,false);
// Ok so now I have it loaded, i figured access would be by:
xml = fsystem->createXMLReader("../ui/zipfile.zip/skin.xml");
Am I doing this right? Or do I have the access format wrong somehow, cause it dosn't seem to work.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, that's something which might work with the next gen filesystem, but that's still not even started. For now you'll get all zip files into a virtual overlay, which means that you can access the files just if they were unzipped into the current directory. So use "skin.xml" if there is no further directory structure in the zip file (or just set ignorePaths=true), otherwise you would use "path/to/files/skin.xml".
Post Reply