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

Closed
Sorcky1 wants to merge 1 commit from upstream-pr/511 into main
Sorcky1 commented 2026-11-27 23:50:15 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Sorcky1 on 2026-11-27T23:50:15Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5534618863 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/511). Originally posted by [Sorcky1](https://github.com/Sorcky1) on 2026-11-27T23:50:15Z. --- `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.
trustno1-coder commented 2026-11-28 02:50:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T02:50:02Z.


Merged into main (8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7232622920 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/511#issuecomment-7232622920). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T02:50:02Z. --- Merged into main (8fc2254) and shipped in [v2026.11.27.10](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.10). The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

Pull request closed

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!511
No description provided.