Archived

This topic is now archived and is closed to further replies.

v0dKA

How to save info after shut down

Recommended Posts

What type of file retains information and values of variables after the program is ended and or computer is shut down? how do games keep their save information?

Share this post


Link to post
Share on other sites
There are a number of ways to do this, but the easiest explanation is this: for every object that you care about, you save their current position / stats in a certain order, then you reload the information in the exact same order.

Share this post


Link to post
Share on other sites
If you don''t know how games write things to the hard drive i recommend you download the Platform SDK(google:"Platform SDK") and read about the functions Createfile(), ReadFile(), WriteFile(), and Closehandle()... that should be all you need to the writing.

Share this post


Link to post
Share on other sites