Preload window: keep its splash and shader count under VICTORY_HOME #4686

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

@⁠eipastel on GitHub · 2026-12-01 01:47 UTC · original
eipastel:fix/preload-window-victory-home → main · +6 −5 · 2 files · 1 commits · open

No issue open for it. Same kind of fix as #4616 (MFG Unlocker), for the two other files the launcher still put under %LOCALAPPDATA% with VICTORY_HOME set.

What it changes

With VICTORY_HOME set, play-nvidia.ps1 keeps its logs, menu file and key bindings there ($homeDir), and victory.exe keeps its settings there too (home() in apps/victory/src/play.rs). Two files of the preload window did not follow it:

  • Get-SplashImage (scripts/preload-window.ps1) cached a -Splash URL in %LOCALAPPDATA%\victory\splash.
  • play-nvidia.ps1 kept the last preload's shader count (the window's first-step total) in %LOCALAPPDATA%\victory\preload-last.txt.

Both now go under VICTORY_HOME when it is set. Without it, both paths are exactly as before. The two comments that named the old folder say the new one.

How it was tested

  • GPU and profile: not applicable (launcher paths only).
  • Get-SplashImage dot-sourced, with a file already cached at <VICTORY_HOME>\splash\x.jpg and -Splash http://example.invalid/x.jpg: it returns <VICTORY_HOME>\splash\x.jpg (before: it looked in %LOCALAPPDATA%\victory\splash).
  • preload-last.txt: read by eye; $homeDir is set at line 90, before this line.
  • Both scripts parse without errors ([Parser]::ParseFile), and cargo xtask policy --staged passes.
  • Not run: a full start with the preload window. cargo test: not applicable (scripts only).

Checked for overlap

  • I searched the open and closed pull requests and issues (preload-last, VICTORY_HOME splash, preload window). The open pull requests touching preload-window.ps1 (#2458, #2773) change the progress parsing, not these paths. Related: #4616, #2694 (VICTORY_HOME in bench.ps1 and the one-click start).

🤖 Generated with Claude Code

**@⁠eipastel** on GitHub · 2026-12-01 01:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4685) `eipastel:fix/preload-window-victory-home` → `main` · +6 −5 · 2 files · 1 commits · open No issue open for it. Same kind of fix as #4616 (MFG Unlocker), for the two other files the launcher still put under `%LOCALAPPDATA%` with `VICTORY_HOME` set. ## What it changes With `VICTORY_HOME` set, `play-nvidia.ps1` keeps its logs, menu file and key bindings there (`$homeDir`), and `victory.exe` keeps its settings there too (`home()` in `apps/victory/src/play.rs`). Two files of the preload window did not follow it: - `Get-SplashImage` (`scripts/preload-window.ps1`) cached a `-Splash` URL in `%LOCALAPPDATA%\victory\splash`. - `play-nvidia.ps1` kept the last preload's shader count (the window's first-step total) in `%LOCALAPPDATA%\victory\preload-last.txt`. Both now go under `VICTORY_HOME` when it is set. Without it, both paths are exactly as before. The two comments that named the old folder say the new one. ## How it was tested - GPU and profile: not applicable (launcher paths only). - `Get-SplashImage` dot-sourced, with a file already cached at `<VICTORY_HOME>\splash\x.jpg` and `-Splash http://example.invalid/x.jpg`: it returns `<VICTORY_HOME>\splash\x.jpg` (before: it looked in `%LOCALAPPDATA%\victory\splash`). - `preload-last.txt`: read by eye; `$homeDir` is set at line 90, before this line. - Both scripts parse without errors (`[Parser]::ParseFile`), and `cargo xtask policy --staged` passes. - Not run: a full start with the preload window. `cargo test`: not applicable (scripts only). ## Checked for overlap - [x] I searched the open and closed pull requests and issues (`preload-last`, `VICTORY_HOME splash`, preload window). The open pull requests touching `preload-window.ps1` (#2458, #2773) change the progress parsing, not these paths. Related: #4616, #2694 (`VICTORY_HOME` in `bench.ps1` and the one-click start). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Get-SplashImage cached an -Splash URL in %LOCALAPPDATA%\victory\splash and
play-nvidia.ps1 kept the last preload's shader count in
%LOCALAPPDATA%\victory\preload-last.txt even with VICTORY_HOME set, while the
script's logs, menu, bindings and victory.exe itself use VICTORY_HOME.
Without VICTORY_HOME both paths are as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 01:52:36 +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/4686/head:github-bot/gh-4685'
git switch 'github-bot/gh-4685'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4685'
git switch 'github-bot/gh-4685'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4685'
git switch 'github-bot/gh-4685'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4685'
git switch 'main'
git merge --squash 'github-bot/gh-4685'
git switch 'main'
git merge --ff-only 'github-bot/gh-4685'
git switch 'main'
git merge 'github-bot/gh-4685'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4686
No description provided.