How to read a password protected zip file
How to read a password protected zip file
Hi everybody,
As you can see in topic I would like to know about reading a zip file, especially with password protected ones. I tried to search on forums but whenever I write "zip" as keyword it returns all topics which included zip file links.
As you can see in topic I would like to know about reading a zip file, especially with password protected ones. I tried to search on forums but whenever I write "zip" as keyword it returns all topics which included zip file links.
Code: Select all
virtual bool addFileArchive(const path& filename, bool ignoreCase=true,
bool ignorePaths=true,
E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN,
const core::stringc& password="") =0;
I have added a zip file into working directory but file system does not see my files.
I have a folder named "enviroments" and a file in this folder named "enviroment1.X". And I tried to load this x file as:
Am I doing smt wrong?
Code: Select all
if (!g_fileSystem->addFileArchive("resources.zip", true, false, io::E_FILE_ARCHIVE_TYPE::EFAT_ZIP, "anka"))
{
DebugBreak();
}
Code: Select all
scene::IAnimatedMesh* mesh = g_smgr->getMesh("enviroments\\enviroment1.x");
If I do not put a password it works.. But with password zip file does not work. I compressed zip file in max compression. This may be a bug in Irrlicht, I may open a new topic under bug section after inspecting this error carefully.
And yet I got another problem getSceneCollisionManager()->getSceneNodeAndCollisionPointFromRay method started to return an error Access violation reading location 0x00000000.
Why this happens
And yet I got another problem getSceneCollisionManager()->getSceneNodeAndCollisionPointFromRay method started to return an error Access violation reading location 0x00000000.
Why this happens
Code: Select all
if(!iDVC->getFileSystem()->addFileArchive("resources.zip",true,false,irr::io::EFAT_ZIP,"murloc992"))
return;
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
I noticed there were two backslashes \\ in the file path. Shouldn't they be forward // so that they don't get mistaken for an escape sequence?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
use 7zip to compress ZIP files...
and in options please set AES-256 encription in 7zip
http://www.7-zip.org/
other encrypt algorithm not work ..!!!!
irrlicht compiled with dx8,dx9 and zip encrypted ...
in bullet animator - binaries:
http://irrlicht.sourceforge.net/phpBB2/ ... t+animator
Yes, long live to Irrlicht !!!!!!
....
and in options please set AES-256 encription in 7zip
http://www.7-zip.org/
other encrypt algorithm not work ..!!!!
irrlicht compiled with dx8,dx9 and zip encrypted ...
in bullet animator - binaries:
http://irrlicht.sourceforge.net/phpBB2/ ... t+animator
Yes, long live to Irrlicht !!!!!!
....
Bennu (Best 2d and 3D dev-tool)
http://bennupack.blogspot.com
Pixtudio (Best 2D development tool)
http://pixtudiopack.blogspot.com
Bennu3D(3D Libs for bennu)
http://3dm8ee.blogspot.com/
Colombian Developers - Blog:
http://coldev.blogspot.com/
http://bennupack.blogspot.com
Pixtudio (Best 2D development tool)
http://pixtudiopack.blogspot.com
Bennu3D(3D Libs for bennu)
http://3dm8ee.blogspot.com/
Colombian Developers - Blog:
http://coldev.blogspot.com/
\\ would be an escape sequence for just one \3DModelerMan wrote:I noticed there were two backslashes \\ in the file path. Shouldn't they be forward // so that they don't get mistaken for an escape sequence?
However it is generally a good habbit to use / instead to maintain Linux and OSX compatibility in the future.
~DtD