turconi wrote:Yes...Irrlicht loads the file and then put it in memory.
No, Irrlicht creates a file handle that is suitable for reading data from a file. You have to put that data into a block of memory that you can access.
turconi wrote:In what file could I add a function to decrypt it?
You'd put it into a source file, hopefully alongside your encryption function. You shouldn't need to modify any of the existing Irrlicht library code to do this.
If you are using a recent version of Irrlicht, you should consider creating your own derived
IArchiveLoader class that knows how to recognize, open and read an encrypted file archive. All you need to do is create an instance of your archive loader and pass it to the file system. Then whenever you try to get a file, you just request it from the file system, and it will be decrypted automagically.
Travis