|
|
I'm writing a hybrid 2D/3D game engine, and now that everything's working, I've suddenly decided that I want to have all of my files be in PAK files or something similar so that people can't just steal all of my music and bitmaps. Unfortunately, I've got no idea how to do this. Espescially since I'm loading my music with DirectShow, and the RenderFile() function only seems to take in actuall files. So what do I do? Do I decrypt and decompress everything at load time, then when loading is done, delete those files and keep the PAK file?
Quite frankly, I'm at a loss, I've got no idea what to do, and this doesn't usually happen to me. I'd also like to be able to not have to write a bunch of MP3 loading and BMP loading and PNG loading functions for my engine. Preferably just something that I can use as a fake file would be great.
Help anyone?
|