docs: mention path override env vars in README #2337

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/2339 into main
romeawayfromhome-rgb commented 2026-11-25 11:03:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-25T11:03:16Z.


Documents the path override environment variables next to the README's data/cache folder description.

Source check: crates/victory-core/src/config.rs resolves VICTORY_CACHE_DIR, VICTORY_DATA_DIR, and VICTORY_GAME_DIR before the config file/default paths. The README described the default data/cache folders but did not name the overrides.

Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7160484834

Prepared with AI assistance (Clifford / Muse Spark); conducted by LegendaryGodKing (romeawayfromhome-rgb).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6603009338 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2339). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-25T11:03:16Z. --- Documents the path override environment variables next to the README's data/cache folder description. Source check: `crates/victory-core/src/config.rs` resolves `VICTORY_CACHE_DIR`, `VICTORY_DATA_DIR`, and `VICTORY_GAME_DIR` before the config file/default paths. The README described the default data/cache folders but did not name the overrides. Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7160484834 Prepared with AI assistance (Clifford / Muse Spark); conducted by LegendaryGodKing (romeawayfromhome-rgb).
DenRakEiw commented 2026-11-25 12:03:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:30:18Z.

Review: COMMENTED


Checked against origin/main (940d32f) — cargo xtask policy passes (183 files ok), and VICTORY_DATA_DIR / VICTORY_CACHE_DIR / VICTORY_GAME_DIR all match crates/victory-core/src/config.rs.

One small factual note on precedence: the added line says "VICTORY_GAME_DIR sets the game folder when it is not configured in victory.toml", whereas crates/victory-core/src/config.rs:99 resolves:

game_dir: env_path("VICTORY_GAME_DIR").or(file.game_dir),

So VICTORY_GAME_DIR actually overrides [paths].game_dir from victory.toml (just like VICTORY_DATA_DIR and VICTORY_CACHE_DIR), rather than acting as a fallback when victory.toml omits it.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6056809523 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2339#pullrequestreview-6056809523). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T11:30:18Z. **Review:** COMMENTED --- Checked against `origin/main` (`940d32f`) — `cargo xtask policy` passes (183 files ok), and `VICTORY_DATA_DIR` / `VICTORY_CACHE_DIR` / `VICTORY_GAME_DIR` all match `crates/victory-core/src/config.rs`. One small factual note on precedence: the added line says "`VICTORY_GAME_DIR` sets the game folder when it is not configured in `victory.toml`", whereas `crates/victory-core/src/config.rs:99` resolves: ```rust game_dir: env_path("VICTORY_GAME_DIR").or(file.game_dir), ``` So `VICTORY_GAME_DIR` actually **overrides** `[paths].game_dir` from `victory.toml` (just like `VICTORY_DATA_DIR` and `VICTORY_CACHE_DIR`), rather than acting as a fallback when `victory.toml` omits it. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 12:03:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:51:56Z.

Review: COMMENTED


Docs-only: VICTORY_DATA_DIR/VICTORY_CACHE_DIR/VICTORY_GAME_DIR overrides in README. Fine.

<!-- greyfinch-sync:Marvisak/VIctory:review:6057089184 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2339#pullrequestreview-6057089184). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T11:51:56Z. **Review:** COMMENTED --- Docs-only: VICTORY_DATA_DIR/VICTORY_CACHE_DIR/VICTORY_GAME_DIR overrides in README. Fine.
cloph-dsp commented 2026-11-25 14:07:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T13:09:26Z.


Independent local validation for Victory PR #2339 (Windows, Rust 1.100.0/MSVC, head a0dab6a, no game data): README one-line note about VICTORY_DATA_DIR/VICTORY_CACHE_DIR overrides and VICTORY_GAME_DIR when victory.toml has no game dir — docs-only. cargo test --locked -p victory --bins -> 10 tests passed, exit 0; git diff --check HEAD~1 HEAD clean. I did not verify the override behaviour at runtime. AI-assisted (Hy4 flash). GPU/driver: N/A. No game data, assets or extracted content used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163371894 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2339#issuecomment-7163371894). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T13:09:26Z. --- Independent local validation for Victory PR #2339 (Windows, Rust 1.100.0/MSVC, head a0dab6a, no game data): README one-line note about VICTORY_DATA_DIR/VICTORY_CACHE_DIR overrides and VICTORY_GAME_DIR when victory.toml has no game dir — docs-only. `cargo test --locked -p victory --bins` -> 10 tests passed, exit 0; `git diff --check HEAD~1 HEAD` clean. I did not verify the override behaviour at runtime. AI-assisted (Hy4 flash). GPU/driver: N/A. No game data, assets or extracted content used.
Marvisak commented 2026-11-25 16:09:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:27:14Z.


Automated triage for the maintainers.

Needs work (one wording fix). Documenting the path overrides is useful, and VICTORY_DATA_DIR / VICTORY_CACHE_DIR are described correctly. The VICTORY_GAME_DIR sentence is not accurate, though: in crates/victory-core/src/config.rs (Config loading), env_path("VICTORY_GAME_DIR").or(file.game_dir) means the variable takes precedence over [paths].game_dir in victory.toml, not only when the file leaves it unset. Please reword it, for example "VICTORY_GAME_DIR sets the game folder (it takes precedence over victory.toml)"; the data and cache variables also take precedence over the file. CI: not run.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7166866224 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2339#issuecomment-7166866224). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T15:27:14Z. --- <!-- victory-triage v1 head=a0dab6a5c56f10e05975d67ad9324f67abbacc98 verdict=needs-work at=2026-11-25T15:27:00Z --> Automated triage for the maintainers. **Needs work (one wording fix).** Documenting the path overrides is useful, and `VICTORY_DATA_DIR` / `VICTORY_CACHE_DIR` are described correctly. The `VICTORY_GAME_DIR` sentence is not accurate, though: in `crates/victory-core/src/config.rs` (`Config` loading), `env_path("VICTORY_GAME_DIR").or(file.game_dir)` means the variable takes precedence over `[paths].game_dir` in `victory.toml`, not only when the file leaves it unset. Please reword it, for example "`VICTORY_GAME_DIR` sets the game folder (it takes precedence over `victory.toml`)"; the data and cache variables also take precedence over the file. CI: not run. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2339:upstream-pr/2339'
git switch 'upstream-pr/2339'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2339'
git switch 'upstream-pr/2339'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2339'
git switch 'upstream-pr/2339'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2339'
git switch 'main'
git merge --squash 'upstream-pr/2339'
git switch 'main'
git merge --ff-only 'upstream-pr/2339'
git switch 'main'
git merge 'upstream-pr/2339'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2337
No description provided.