play-nvidia: fetch MFG Unlocker under VICTORY_HOME like the rest of the script #4524

Closed
github-bot wants to merge 14 commits from github-bot/gh-4523 into main AGit
Owner

@⁠eipastel on GitHub · 2026-11-30 21:50 UTC · original
eipastel:fix/play-mfg-under-victory-home → main · +955 −847 · 32 files · 14 commits · closed without merging

[pr-fix] No issue open for it.

What it changes

scripts/play-nvidia.ps1 -ForceMfg fetched MFG Unlocker into %LOCALAPPDATA%\victory\mfg-unlocker even when VICTORY_HOME is set. Everything else follows VICTORY_HOME: the script's own logs, menu file and key bindings ($homeDir, line 90), get-mfg-unlocker.ps1 without -To (line 14), and victory get-mfg-unlocker (mfg_home() in apps/victory/src/play.rs). So with VICTORY_HOME on another drive, -ForceMfg put a second copy on C: and never reused the one victory get-mfg-unlocker had placed.

One line: $mfgDir now comes from $homeDir, which is already VICTORY_HOME or %LOCALAPPDATA%\victory. Without VICTORY_HOME the path is the same as before.

How it was tested

  • GPU and profile: not applicable (launcher path only; RTX 5060 8 GB here).
  • Before, with VICTORY_HOME=C:\vh-test: $mfgDir = %LOCALAPPDATA%\victory\mfg-unlocker, while get-mfg-unlocker.ps1 without -To uses C:\vh-test\mfg-unlocker.
  • After: $mfgDir = C:\vh-test\mfg-unlocker, the same folder. Without VICTORY_HOME: unchanged.
  • play-nvidia.ps1 parses without errors ([Parser]::ParseFile), and cargo xtask policy --staged passes.
  • cargo test passed for the crates it touches: not applicable (script only).

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. None of the open PRs that touch play-nvidia.ps1 changes the MFG Unlocker path (checked each diff for mfg); #2694 handles VICTORY_HOME in bench.ps1, not here.

🤖 Generated with Claude Code

**@⁠eipastel** on GitHub · 2026-11-30 21:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4523) `eipastel:fix/play-mfg-under-victory-home` → `main` · +955 −847 · 32 files · 14 commits · closed without merging [pr-fix] No issue open for it. ## What it changes `scripts/play-nvidia.ps1 -ForceMfg` fetched MFG Unlocker into `%LOCALAPPDATA%\victory\mfg-unlocker` even when `VICTORY_HOME` is set. Everything else follows `VICTORY_HOME`: the script's own logs, menu file and key bindings (`$homeDir`, line 90), `get-mfg-unlocker.ps1` without `-To` (line 14), and `victory get-mfg-unlocker` (`mfg_home()` in `apps/victory/src/play.rs`). So with `VICTORY_HOME` on another drive, `-ForceMfg` put a second copy on C: and never reused the one `victory get-mfg-unlocker` had placed. One line: `$mfgDir` now comes from `$homeDir`, which is already `VICTORY_HOME` or `%LOCALAPPDATA%\victory`. Without `VICTORY_HOME` the path is the same as before. ## How it was tested - GPU and profile: not applicable (launcher path only; RTX 5060 8 GB here). - Before, with `VICTORY_HOME=C:\vh-test`: `$mfgDir` = `%LOCALAPPDATA%\victory\mfg-unlocker`, while `get-mfg-unlocker.ps1` without `-To` uses `C:\vh-test\mfg-unlocker`. - After: `$mfgDir` = `C:\vh-test\mfg-unlocker`, the same folder. Without `VICTORY_HOME`: unchanged. - `play-nvidia.ps1` parses without errors (`[Parser]::ParseFile`), and `cargo xtask policy --staged` passes. - `cargo test` passed for the crates it touches: not applicable (script only). ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. None of the open PRs that touch `play-nvidia.ps1` changes the MFG Unlocker path (checked each diff for `mfg`); #2694 handles `VICTORY_HOME` in `bench.ps1`, not here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
-ForceMfg fetched MFG Unlocker into %LOCALAPPDATA%\victory\mfg-unlocker even
with VICTORY_HOME set, while get-mfg-unlocker.ps1 (without -To), `victory
get-mfg-unlocker` (play.rs mfg_home) and the script's own logs, menu and
bindings all use VICTORY_HOME. With VICTORY_HOME set, a second copy went to
the C: drive. $homeDir is already VICTORY_HOME or %LOCALAPPDATA%\victory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 21:51:43 +00:00
github-bot closed this pull request 2026-12-01 00:04:54 +00:00
Author
Owner

@⁠eipastel on GitHub · 2026-11-30 23:51 UTC · original

Superseded by 4615: main was rewritten and this branch's base is no longer in it, so the same one commit is now on the new main.

**@⁠eipastel** on GitHub · 2026-11-30 23:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4523#issuecomment-7295608750) Superseded by 4615: `main` was rewritten and this branch's base is no longer in it, so the same one commit is now on the new `main`.

Pull request closed

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