It is possible to access files from folders inside zip archives. Like for instance:
device->getFileSystem()->addZipFileArchive("data.zip");
scene::IAnimatedMesh* mesh = smgr->getMesh("Meshes/Mesh1.b3d");
accesing files for Zip archives with folders
i dont think so.
you see how getMesh("20kdm2.bsp") takes the map, but the map is in directory \map\ inside pk3 archive. maybe you could access that file simly by getMesh("mesh1.b3d");[/quote]
Code: Select all
device->getFileSystem()->addZipFileArchive("media/map-20kdm2.pk3");
IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
Yes, you can !!!
As you can see there is the flag "ignorePaths" !!!
Set it to false and you'll have to use the full path...
Code: Select all
virtual bool irr::io::IFileSystem::addZipFileArchive ( const c8 * filename,
bool ignoreCase = true,
bool ignorePaths = true
) [pure virtual]
Set it to false and you'll have to use the full path...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java