Preserve VICTORY_HOME across play and preload #510

Open
github-bot wants to merge 2 commits from github-bot/gh-510 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-27 23:48 UTC · original
ghptc:fix/victory-home-cache-paths → main · +100 −24 · 9 files · 2 commits · open

Fixes #472
Related to #491

victory play opened its log under VICTORY_HOME, then cleared the variable while resetting inherited rendering switches. The preload child and the runtime subsequently selected the default cache and data roots. The PowerShell launchers also cleared the variable, and the Pareto launcher explicitly selected a cache under LocalAppData.

Preserve the home override through play and preload. Use it for Foxhound settings and logs and for the Pareto cache default. The frame-generation wrapper now backs up the data directory reported by victory config, including TOML and per-directory overrides. Existing saves and caches stay in place.

Reproduction and validation

With LocalAppData on C: and a previously nonexistent Unicode home on E:, a locally compiled synthetic title produced the following results. Both runs exited successfully.

Observed location Upstream main This PR
victory config cache path and play log E: E:
Preload's cache/pipelines/warm-done.txt and the translated image C: E:
Title storage and guest temporary directory C: E:

An empty executable also reproduces the cache write without game assets. Run victory play empty.exe --series-s --dlss off --no-framegen-ready --preload with a fresh home. Preload writes the marker before the launcher rejects the empty image.

  • After integrating upstream a4d05e7, all 28 Windows CLI and integration tests passed under Proton Experimental, including the upstream restart-options test. All 26 native Linux tests passed across victory-core, victory-pipeline and xtask.
  • Both default and diagnostics configurations passed cargo check --locked -p victory --all-targets --target x86_64-pc-windows-msvc.
  • Fixture runs covered legacy defaults, spaces, Unicode, missing directories, explicit overrides, TOML, Pareto and the save-backup source. Seeded legacy saves retained their contents.

Local runtime validation used an RTX 5070, Proton Experimental experimental-11.0-20261123b and PowerShell 7.7.0 for Windows. Native Windows launcher behavior and Windows PowerShell 5.1 remain unverified locally. The fix covers VIctory-managed storage. GPU-driver and third-party SDK cache relocation was neither changed nor verified.

**@⁠ghptc** on GitHub · 2026-11-27 23:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/510) `ghptc:fix/victory-home-cache-paths` → `main` · +100 −24 · 9 files · 2 commits · open Fixes #472 Related to #491 `victory play` opened its log under `VICTORY_HOME`, then cleared the variable while resetting inherited rendering switches. The preload child and the runtime subsequently selected the default cache and data roots. The PowerShell launchers also cleared the variable, and the Pareto launcher explicitly selected a cache under LocalAppData. Preserve the home override through play and preload. Use it for Foxhound settings and logs and for the Pareto cache default. The frame-generation wrapper now backs up the data directory reported by `victory config`, including TOML and per-directory overrides. Existing saves and caches stay in place. ### Reproduction and validation With LocalAppData on C: and a previously nonexistent Unicode home on E:, a locally compiled synthetic title produced the following results. Both runs exited successfully. | Observed location | Upstream main | This PR | |---|---|---| | `victory config` cache path and play log | E: | E: | | Preload's `cache/pipelines/warm-done.txt` and the translated image | C: | E: | | Title storage and guest temporary directory | C: | E: | An empty executable also reproduces the cache write without game assets. Run `victory play empty.exe --series-s --dlss off --no-framegen-ready --preload` with a fresh home. Preload writes the marker before the launcher rejects the empty image. - After integrating upstream `a4d05e7`, all 28 Windows CLI and integration tests passed under Proton Experimental, including the upstream restart-options test. All 26 native Linux tests passed across `victory-core`, `victory-pipeline` and `xtask`. - Both default and `diagnostics` configurations passed `cargo check --locked -p victory --all-targets --target x86_64-pc-windows-msvc`. - Fixture runs covered legacy defaults, spaces, Unicode, missing directories, explicit overrides, TOML, Pareto and the save-backup source. Seeded legacy saves retained their contents. Local runtime validation used an RTX 5070, Proton Experimental `experimental-11.0-20261123b` and PowerShell 7.7.0 for Windows. Native Windows launcher behavior and Windows PowerShell 5.1 remain unverified locally. The fix covers VIctory-managed storage. GPU-driver and third-party SDK cache relocation was neither changed nor verified.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:52:58 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/510/head:github-bot/gh-510'
git switch 'github-bot/gh-510'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-510'
git switch 'github-bot/gh-510'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-510'
git switch 'github-bot/gh-510'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-510'
git switch 'main'
git merge --squash 'github-bot/gh-510'
git switch 'main'
git merge --ff-only 'github-bot/gh-510'
git switch 'main'
git merge 'github-bot/gh-510'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.