Jump to content
  • Advertisement
Sign in to follow this  
guitarstar26

Storing persistant data within the .exe

This topic is 2955 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

Advertisement
Well, not quite near impossible, but so difficult as to be non-justifiable. You can modify the .exe with some devilry (at least on earlier versions of Windows, probably not anymore in Vista and Win7), and you can append data to the end of the file at will without worrying about modifying anything else in there (this is, as a vast oversimplification, more or less how resource tables work anyways).

However, you're far better off just using the local userdata folders and sticking your game files in there.

Share this post


Link to post
Share on other sites
It could also draw attention of some firewalls/antiviruses.

[Edited by - Tom KQT on August 22, 2010 3:17:30 AM]

Share this post


Link to post
Share on other sites
Pretty difficult as mentioned due to the fact that you can't modify an open file. You could write out another application to the temp folder (for example) which stores the save data into the exe after your main app quits as part of it's resources.

But, why?

Share this post


Link to post
Share on other sites
But...

If you set up the space before you compile you can mod the exe as long as your 100 percent sure of where in the exe your data is.

Not reccomended but it use to be done frequently in days long gone by.

Share this post


Link to post
Share on other sites
Quote:
Original post by guitarstar26
How difficult with something like this be?

It would be a decent asset for auto/quicksaves in a small game I'm working on.


Each OS tells very specifically where such files go.

I agree with Apple on enforcing such rules - software that doesn't obey them should be banned and burned.

For reference, see Windows Registry and pre-Vista times, when every application felt it was its god given right to crap all over the system. Under Windows, there are specific folders for that. Linux distros have similar conventions as well. Mac probably too.

Any system in active use today should make modification of executables impossible by default.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!