Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Including files in the .exe

Author
Message
Sentri
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 30th May 2009 21:59
Hi, I have been messing around with Dark GDK for a while now, and I'd like to know a way to embed my textures and other media directly in to the exe file, so that nobody could edit them and exploit the game. I know it is possible, it must be some stuff in the compiler I suppose. (To extract the files on startup to a TEMP folder or something like that) The other way would be to encrypt/decrypt the files but it goes complicated. I am using Visual C++ Express Edition to compile.

Thanks!
Jumpster
16
Years of Service
User Offline
Joined: 7th Feb 2008
Location:
Posted: 30th May 2009 23:12
I'm not sure if you can do this in Express but:

1)Add a new resource file to your project.
2)Add a new resource to your resource file
-> On the Add Resource dialog click "Custom..."
-> For Type: enter whatever you wish "My_PNG" for example
3)Add your "resources" under that new folder in your resources.rc tree.
4)Access those resources using the ::FindResource() and ::LoadResource() functions of the WIN32.

Note: This approach imbeds the resources directly into the .EXE so it may *not* be exactly what you're looking for, but it is what you asked for...

Regards,
Jumpster
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 31st May 2009 11:00
MoleBox

Login to post a reply

Server time is: 2024-10-01 03:23:25
Your offset time is: 2024-10-01 03:23:25