• Advertisement
Sign in to follow this  

How do I make my .x files into a resource?

This topic is 4873 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've been searching on the net for quite a while now on how to make a resource from any file, but all I can find is the typical 'here's how to make an icon resource'-type stuff. So does anyone know how to do this? Is it even possible? I need it to keep some of the 3d model files hidden from the user (they could really mess up the game if they changed those...), so I thought I might aswell put all my external files into the exectuable, which would also make installation a lot easier. Also, once they're compiled as resources, how do I access them via the code?

Share this post


Link to post
Share on other sites
Advertisement
How about saving a md5 or something for ur .x files, and check the files against the md5. that way you know the files havent been messed with

Share this post


Link to post
Share on other sites
yeah, altho it might be easy to hack the resources in a .exe, it still requires a bit of knowledge and expertise. What I really want is to have my program downloadable as one single file, instead of an .exe and a whole Media sub-dir. :-/

edit: *without* using zip files. For there are people out there who are too dumb to unzip a program correctly... :-(

[Edited by - just_haps on October 23, 2004 4:37:03 PM]

Share this post


Link to post
Share on other sites
Well making them a resource file is probably not going to save much space. But I know Visual Studio lets you load any resource file. Not sure about Dev-C++, which is what I use.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement