Why do so many games use the documents folder for save files?

457 views

Why do so many games use the documents folder for save files?

In: Technology

4 Answers

Anonymous 0 Comments

I’ll talk in a Windows-specific context. Been writing Windows applications (including games) for 20 years.

If you are doing things *right*, Microsoft has opinions about where you should save things.

Their first recommendation is you should ask the user to tell you where to save things. However, this isn’t convenient for most games. People don’t want to pause and interact with a dialog to save, and in full-screen games there’s not a good way to display the standard Windows file dialogs. Worse, if users can type any arbitrary location the program has to worry about if they choose a save path where they don’t have permission, that doesn’t exist, that’s on a slow network drive, etc. So most games argue they should not be subject to this recommendation.

In early Windows versions, it was easy and convenient to put save games in the same folder as where the game installed. This eventually became off-limits because it’s better for security purposes to protect access to the Program Files folder.

Around when that happened, Microsoft gave developers a way to ask the Windows machine for the location of a handful of special folders. The important ones for this question are:

* “AppData”
* “Documents”

“AppData” is a location associated with your user account where things the application wants to save but does not want the user to interact with should be stored. This is where programs should put things like settings files or downloaded data files. It’s usually at something like “C:UsersYourUserNameAppDataLocal”, but it can be moved. There’s no default shortcut to it in the File Explorer window, so most people don’t even know it’s there.

“Documents” is your documents folder. Developers are discouraged from dumping files here without permission, but also guided to put files we believe the user will want to interact with there. A lot of people want to be able to back up their save games, so placing them in the Documents folder makes it easy for users to find them.

So it’s really just that this is one of the easy, safe, accessible places to store game saves.

You are viewing 1 out of 4 answers, click here to view all answers.