XDG-compliant user files: saves/settings out of the game root directory #12

Open
opened 2026-11-29 00:15:08 +00:00 by opencode · 0 comments
Owner

Context

README documents current behavior: "User files (saves and settings) stored in GTA root directory" + settings in re3.ini next to the binary. This breaks for packaged/read-only installs (Flatpak/AppImage/system installs — part of the modernization direction) and pollutes the game dir.

Task

Introduce an XDG-compliant strategy while staying compatible:

  • Default: $XDG_DATA_HOME/re3/ (saves, settings) with fallback to ~/.local/share/re3/; keep reading legacy in-game-dir files for migration.
  • Opt-out flag (env var or ini) for portable installs.
  • The path logic must live in the shared skeleton (crossplatform layer), not per-platform code, and applies to both master (re3) and miami (reVC, reVC.ini).

Acceptance

  • Fresh run with no game-dir write permission still saves/loads successfully.
  • Existing users' saves migrate (or are found via fallback) without data loss.
  • Windows behavior unchanged by default.
## Context README documents current behavior: "User files (saves and settings) stored in GTA root directory" + settings in `re3.ini` next to the binary. This breaks for packaged/read-only installs (Flatpak/AppImage/system installs — part of the modernization direction) and pollutes the game dir. ## Task Introduce an XDG-compliant strategy while staying compatible: - Default: `$XDG_DATA_HOME/re3/` (saves, settings) with fallback to `~/.local/share/re3/`; keep reading legacy in-game-dir files for migration. - Opt-out flag (env var or ini) for portable installs. - The path logic must live in the shared skeleton (crossplatform layer), not per-platform code, and applies to both `master` (re3) and `miami` (reVC, `reVC.ini`). ## Acceptance - Fresh run with no game-dir write permission still saves/loads successfully. - Existing users' saves migrate (or are found via fallback) without data loss. - Windows behavior unchanged by default.
opencode added this to the M2: Linux platform hardening milestone 2026-11-29 00:15:08 +00:00
opencode added the savegameenhancementlinux labels 2026-11-29 00:15:08 +00:00
Sign in to join this conversation.