Keriew / augustus

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
1.54k stars 119 forks source link

Add support for user directories #1090

Closed crudelios closed 4 months ago

crudelios commented 4 months ago

This commits separates the C3 data files from the user files, such as configurations, savegames, maps and custom scenario stuff.

Upon first launch with this build, the game will ask whether the user wants to specify a directory and will also, in some cases recommend one.

Base options are:

The game will also check if the provided directory is writeable and warn the user if it isn't.

When changing the user directory, the user will be asked if he wants to copy their files to the new location and whether to overwrite files that already exist on the new location.

Because this is a big change, there may be some bugs left. I tested most of the stuff, but I may have missed something.

crudelios commented 4 months ago

This is ready for merge.

Here's a rundown on what will happen the first time you run this build.

A popup will appear warning you that you have never set custom directories and asking if you would want to do it:

city 2024-05-16 13 13 10

If you accept to set the directory, you will then be able to see the current directory and change it:

city 2024-05-16 13 13 25

When you click the current setting, a popup will appear with options (the number of available options will depend on your platform):

city 2024-05-16 13 13 35

If you do change your user directory, you'll be asked if you want to copy your files to the new location and whether to overwrite existing files:

city 2024-05-16 13 16 36