Page 1 of 1
Adding A Zip
Posted: Sun Jul 31, 2005 3:05 pm
by Joe_Oliveri
Well I have been trying this all day and I can't seem to get my code to work! I wrote it a long time ago using C++ when I started my game project! However I can't seem to get my mind to convert it into C# has anyone done this yet? The documents didn't help me really! Thank you...
Re: Adding A Zip
Posted: Sun Jul 31, 2005 5:18 pm
by Zitzu
Hi Joe, I'm not sure but... do you mean this?
Code: Select all
string path =@"..\..\media\" ;
IrrlichtDevice device =new IrrlichtDevice(DriverType.DIRECTX9,new Dimension2D(640,480),16,false,false,false);
Irrlicht.IO.IFileSystem fileSystem=m_device.FileSystem;
// is this what you're looking for?
m_fileSystem.AddZipFileArchive(path+"map-20kdm2.pk3");
I did a quick copy and paste so I hope I didn't forget anything!
Ciao,
-Francesco
BTW: I am italian too!

Posted: Mon Aug 01, 2005 3:28 am
by Joe_Oliveri
Thank you very much that is exactly what I'm looking for!

Posted: Mon Aug 01, 2005 4:08 am
by Joe_Oliveri
ANd for those of you who would also like to see the code that you can just copy and paste into your project here you go!
Code: Select all
device.FileSystem.AddZipFileArchive("myzip.zip");