bloodmasters
bloodmasters copied to clipboard
New user-writeable directory structure
Currently, we have several folders in Paths
that should be user-writable:
-
DownloadedResourceDir
-
ConfigDirPath
-
LogDirPath
-
ScreenshotsDirPath
Let's move them accordingly.
- [ ]
DownloadedResourceDir
: to the persistent app data folder since that's the user content- Maybe something like
Documents\My Games
on Windows? -
$XDG_DATA_HOME/bloodmasters
aka~/.local/share/bloodmasters
on Linux -
~/Library/Bloodmasters
on macOS
- Maybe something like
- [ ]
ConfigDirPath
-
%APPDATA%\Bloodmasters
on Windows -
$XDG_CONFIG_HOME/bloodmasters
aka~/.config/bloodmasters
on Linux -
~/Library/Preferences/bloodmasters
on macOS
-
- [ ]
LogDirPath
-
%TEMP%\Bloodmasters\Logs\
on Windows -
$XDG_STATE_HOME/bloodmasters
aka~/.local/state
on Linux -
~/Library/Logs/Bloodmasters
on macOS
-
- [ ] Make sure there's a reasonable log cleanup policy / size limit
- [ ] On the server, just log to stdout by default and make the logging system configurable
- [ ]
ScreenshotsDirPath
-
%USERPROFILE%\Pictures\Screenshots
on Windows -
$XDG_PICTURES_DIR/Bloodmasters
aka~/Pictures/Bloodmasters
- Desktop folder on macOS
-
- [ ] Make sure the server dirs are configurable
- [ ] Document all that