Jump to content
  • Advertisement
Sign in to follow this  
Tolito

Game Saves

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

I know I can use FILE *save; and then take it from there, but is this the most effective way to make a game save in the C programming language? If the game is installed in Windows' "Program Files" directory, it will not alert the user that an administrative password is needed in order to change the contents of that folder? Would Windows somehow automatically redirect these actions to the "Documents and Settings" directory for both reading and writing a file?

Share this post


Link to post
Share on other sites
Advertisement

I know I can use FILE *save; and then take it from there, but is this the most effective way to make a game save in the C programming language? If the game is installed in Windows' "Program Files" directory, it will not alert the user that an administrative password is needed in order to change the contents of that folder? Would Windows somehow automatically redirect these actions to the "Documents and Settings" directory for both reading and writing a file?


You can and should use the OS API to get the appropiate location for user / application data. (on *nix you can just write to ~/.appname/yourfileshere but for Windows you need to use the OS API to get the appropriate location as it varies depending on what version of the OS the user has (and for atleast some versions it also varies between languages). (The same goes for your installer, never assume that applications are or should be installed in C:\Program Files, non english versions of windows tend to have other names for that folder)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!