Add: support for user-global configuration.

This commit is contained in:
iceBear67
2026-08-08 14:09:43 +08:00
parent 7c3262ee2e
commit 3afbdb2af2
24 changed files with 499 additions and 14 deletions
+7 -1
View File
@@ -169,11 +169,17 @@ whatever is nearly done and then quits regardless.
## Files it writes
Everything lives in `config/photosync/` in your game directory:
By default everything lives in `config/photosync/` in your game directory:
- `photosync.json` — settings, including your API key. Back it up accordingly.
- `uploads.json` — the upload queue, so it survives a crash or a quit.
Turn on *Store settings outside the game folder* in Settings → Storage and
`photosync.json` moves to `~/.config/photosyncmod/` on Linux and macOS, or
`%APPDATA%\photosyncmod\` on Windows, shared across your Minecraft installs.
The game folder keeps `uploads.json` and a small `location.json` pointer that
says where the settings file went.
Screenshots themselves go where they always did, in `screenshots/`. PhotoSync
never moves them, and only deletes one if you asked it to and the upload was
confirmed.