Hi.

I have a game with like a million of resource files (.PNG; .BMP; .WAV; .MP3; ETC) Iv been working on these files for like.. a Year, I don't want these wannabe litle kids, etc, to steal my work just like that.

So I was thinking of crypting the files, so that If my game need to load them I have to put something like this:


VBCode Code:
  1. If (Check_If_The_File_Is_Crypted("c:\test.png") = False) Then
  2.     MsgBox "Error"
  3.     Exit Sub
  4. End If
  5.  
  6. '// Decrypt so we can load it.
  7. Decrypt_File ("c:\test.png")
  8.  
  9. '// Load the file:
  10. Load_File ("c:\test.png")
  11.  
  12. '// Crypt it back.
  13. Crypt_File ("c:\test.png")


By decrypting them when we need them, or at least adding some junk data to the header of each file, so that the user will get: Uknown format or corrupted file.

But... This is so amazingly slow, knowing that my game have to load like a thousand files, and with this it takes 3 times longer.
Anyone have a better (fast) idea, to stop the user from seeing my "program files"?


Thanks.