Preserve VICTORY_HOME across play and preload #510

Merged
ghptc merged 1 commit from upstream-pr/510 into main 2026-11-29 08:16:59 +00:00
ghptc commented 2026-11-27 23:48:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-27T23:48:56Z.


Follow-up to #472

Rechecked against 63b902f. Upstream commit ed81cb9 now preserves uppercase VICTORY_HOME and VICTORY_ADAPTER in native play. This PR covers the remaining launcher paths: Foxhound settings and logs, PowerShell environment cleanup, the Pareto cache, configured save backups, and mixed-case spelling of kept environment variables. A Windows-target Proton run on the merged branch passed all 27 CLI unit tests and the cache-path integration test.

The original reproduction below predates the upstream native fix.

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5534607434 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/510). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-27T23:48:56Z. --- Follow-up to #472 Rechecked against `63b902f`. Upstream commit `ed81cb9` now preserves uppercase `VICTORY_HOME` and `VICTORY_ADAPTER` in native play. This PR covers the remaining launcher paths: Foxhound settings and logs, PowerShell environment cleanup, the Pareto cache, configured save backups, and mixed-case spelling of kept environment variables. A Windows-target Proton run on the merged branch passed all 27 CLI unit tests and the cache-path integration test. The original reproduction below predates the upstream native fix. 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.
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
trustno1-coder/VIctory-NVIDIA!510
No description provided.