play: keep VICTORY_HOME and VICTORY_ADAPTER through prepare (#472) #511

Open
github-bot wants to merge 1 commit from github-bot/gh-511 into main AGit
Owner

@⁠Sorcky1 on GitHub · 2026-11-27 23:50 UTC · original
Sorcky1:fix/keep-home-and-adapter → main · +17 −0 · 1 files · 1 commits · open

prepare clears every VICTORY_ variable not in KEPT before putting the play settings in. VICTORY_HOME and VICTORY_ADAPTER were not in KEPT, but both are read again after the clearing:

  • Config::load in run resolves the cache and save folders, so with VICTORY_HOME set they still went to %LOCALAPPDATA%\victory (#472).
  • The F1 menu's restart and the warm-up restart inherit this process's environment, so the next start read victory-settings.txt from %LOCALAPPDATA% instead of VICTORY_HOME, and its saved choices seemed lost.
  • hardware_adapter reads VICTORY_ADAPTER when the host device is made, so a named card was passed over for the one with the most memory.

Adds both to KEPT, with a test.

**@⁠Sorcky1** on GitHub · 2026-11-27 23:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/511) `Sorcky1:fix/keep-home-and-adapter` → `main` · +17 −0 · 1 files · 1 commits · open `prepare` clears every VICTORY_ variable not in KEPT before putting the play settings in. VICTORY_HOME and VICTORY_ADAPTER were not in KEPT, but both are read again after the clearing: - Config::load in run resolves the cache and save folders, so with VICTORY_HOME set they still went to %LOCALAPPDATA%\victory (#472). - The F1 menu's restart and the warm-up restart inherit this process's environment, so the next start read victory-settings.txt from %LOCALAPPDATA% instead of VICTORY_HOME, and its saved choices seemed lost. - hardware_adapter reads VICTORY_ADAPTER when the host device is made, so a named card was passed over for the one with the most memory. Adds both to KEPT, with a test.
`prepare` clears every VICTORY_ variable not in KEPT before putting the
play settings in. VICTORY_HOME and VICTORY_ADAPTER were not in KEPT, but
both are read again after the clearing:

- Config::load in run resolves the cache and save folders, so with
  VICTORY_HOME set they still went to %LOCALAPPDATA%\victory (#472).
- The F1 menu's restart and the warm-up restart inherit this process's
  environment, so the next start read victory-settings.txt from
  %LOCALAPPDATA% instead of VICTORY_HOME, and its saved choices seemed lost.
- hardware_adapter reads VICTORY_ADAPTER when the host device is made, so
  a named card was passed over for the one with the most memory.

Adds both to KEPT, with a test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:52:59 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/511/head:github-bot/gh-511'
git switch 'github-bot/gh-511'

Merge

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