Loaded Archive File Lists

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.

Loaded Archive File Lists

Postby noretsar » Mon May 14, 2018 1:43 pm

Hi, I'm trying to customize my loaded archive, but I can only read the first file when I added some padding to my archive file. Is there a way to check what is loaded, debug or know what is happening when I load a zip archive?
noretsar
 
Posts: 9
Joined: Fri May 11, 2018 2:04 am

Re: Loaded Archive File Lists

Postby CuteAlien » Mon May 14, 2018 7:47 pm

What is customizing a loaded archive? Do you mean stuff like adding files? I don't think that's possible. If you need that my way to do that would probably be to copy-paste the code of the archive-loader and then check how to modify that directly.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Loaded Archive File Lists

Postby noretsar » Thu May 17, 2018 1:45 am

CuteAlien wrote:What is customizing a loaded archive? Do you mean stuff like adding files? I don't think that's possible. If you need that my way to do that would probably be to copy-paste the code of the archive-loader and then check how to modify that directly.


Hi! Yes, I was trying to use a custom zip/archive format by moving the signature offset and adding a few more bytes at the beginning. I modified a few sources which affects the archive reading and it works, but I can only read the first file, no idea where to get the current file pointer or how to track or fetch the rest of the files as I thought this was loaded to memory or something.
noretsar
 
Posts: 9
Joined: Fri May 11, 2018 2:04 am

Re: Loaded Archive File Lists

Postby CuteAlien » Thu May 17, 2018 10:07 am

So you don't want to modify files but archive itself? I suppose you have to check source for that. For zip it's CZipReader.cpp
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest