I currently can save my game files just fine, but I’ve been saving to the assets folder. This is a universal directory that works for any installation of the game. However, I need to be writing to a better location because /assets ends up being in users’ Program Files, and that requires administrator privileges to save to and is not what that location was designed for.
For distributed installations of my game, what is the appropriate way to direct game saves to a better file location?
Currently, it is:
[icode]BufferedWriter out = new BufferedWriter(new FileWriter(“assets\WriteHere\GameSettings.txt”));[/icode]
I either need them to tell me or I need to know a better location. How do people recommend I go about getting the user’s desired save location, or is there a command I don’t know that lets me grab their Users folder or something?