i have used irrlicht file system to store all my models,textures and data into a zip file.. like this
Code: Select all
device->getFileSystem()->addFileArchive("data.zip",true,true,irr::io::EFAT_ZIP);
when i want to create nodes using the models from this zip, i do it this way
Code: Select all
irr::video::ITexture *texture = driver->getTexture("texture.png");
irr::scene::IAnimatedMesh *mesh = smgr->getMesh("model.obj");
But suppose that the contents of the zip are these files ...
Code: Select all
texture.png
model.obj
song.mp3
other.file
in other words, i need something like this...
Code: Select all
irr::io::IFileSystem *file = device->getFileSystem();
irr::io::path ExtractedPath = file->extractFileAndGetPath("song.mp3"); // or something like file->getExtractedPath("song.mp3");
mylibrary->loadSong( ExtractedPath );