Sign in to follow this  
AntiGuy

Masking Image files

Recommended Posts

Can someone explain how to release a game without giving out the BMP file? I'm aware people probably won't want to steal the files but you can never be too sure. Thx in advance!!

Share this post


Link to post
Share on other sites
It depends. You can make things harder, but theres pretty much nothing you can do to stop someone who's determined enough.
If you're loading the image with the GDI function LoadImage(), you could switch to loading the file from a resource. Then the person would have to extract the image from the EXE before they can do anything.
If you're loading the image by passing a memory buffer, then you can do anything you like. You could do something simple like add 1 to each byte in the file, and then when you come to read it, load the buffer, and decrease every byte by 1, then pass the buffer off to be loaded.
If you're loading the image by some way that needs a filename (so it reads the file off the disk), you could maybe try creating a tempoary file in the windows temp directory or somewhere, and decrypting your file to that, then load the file, and then delete it.

Just some ideas...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this