Preserve launcher paths and working directory on F1 restart #563

Open
github-bot wants to merge 2 commits from github-bot/gh-563 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-28 00:58 UTC · original
ghptc:fix/shader-preload-startup → main · +104 −22 · 3 files · 2 commits · open

An F1 preload restart can close the game and then lose the replacement console before shader compilation begins. Both launchers embed paths in PowerShell source. A typographic apostrophe in a path can end the quoted string. The new console also inherits the game's current directory, so relative paths can resolve differently after the game changes directory.

Pass the launcher and title paths through environment values, give the new console the launcher's original working directory, and resolve Foxhound's relative title before changing directories. The native launcher continues to replay the original CLI options, including repeated --set values. The new tests cover the native argument template and the title, preload flag and working directory received by a real child console.

Synthetic reproduction

Input Upstream main This change
Title or launcher path containing Player’s PowerShell exited 1 before writing a second play log Both the native launcher and Foxhound restarted
Relative Foxhound title or native VICTORY_CONFIG=user.toml, after a working-directory change The restarted launcher reported a missing title or configuration The same input resolved and preload completed
One synthetic compute shader and pipeline recipe under Player’s Game The replacement shell exited before compilation One shader translated, one host pipeline created, and the synthetic title exited 0

The harness replayed the real launch settings through the F1 menu in an isolated process. The automatic warmup restart was also exercised for both launchers using a synthetic draw count. Both restarted without requesting preload. The native launcher's second play log confirmed that the original flags and repeated --set values survived the restart. These results establish two failure modes on upstream a4d05e7. The reporter's logs are still needed to identify which stage failed in their run.

Validation

  • Proton Experimental experimental-11.0-20261123b-x86_64, PowerShell 7.7.0 for Windows, GeForce RTX 5070. Both new regressions passed. Across the selected Windows suites, 42 tests passed and one failed.
  • pipeline::library::tests::a_rejected_blob_gives_an_empty_library failed on both clean upstream and this branch because the D3D12 provider could not create an empty pipeline library.
  • All 26 host tests passed. MSVC all-target compile checks for victory and victory-gpu passed with default features and with diagnostics. git diff --check passed.
  • Native Windows, Windows PowerShell 5.1 and actual gameplay remain untested.

Refs #493

**@⁠ghptc** on GitHub · 2026-11-28 00:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/563) `ghptc:fix/shader-preload-startup` → `main` · +104 −22 · 3 files · 2 commits · open An F1 preload restart can close the game and then lose the replacement console before shader compilation begins. Both launchers embed paths in PowerShell source. A typographic apostrophe in a path can end the quoted string. The new console also inherits the game's current directory, so relative paths can resolve differently after the game changes directory. Pass the launcher and title paths through environment values, give the new console the launcher's original working directory, and resolve Foxhound's relative title before changing directories. The native launcher continues to replay the original CLI options, including repeated `--set` values. The new tests cover the native argument template and the title, preload flag and working directory received by a real child console. ### Synthetic reproduction | Input | Upstream main | This change | | --- | --- | --- | | Title or launcher path containing `Player’s` | PowerShell exited 1 before writing a second play log | Both the native launcher and Foxhound restarted | | Relative Foxhound title or native `VICTORY_CONFIG=user.toml`, after a working-directory change | The restarted launcher reported a missing title or configuration | The same input resolved and preload completed | | One synthetic compute shader and pipeline recipe under `Player’s Game` | The replacement shell exited before compilation | One shader translated, one host pipeline created, and the synthetic title exited 0 | The harness replayed the real launch settings through the F1 menu in an isolated process. The automatic warmup restart was also exercised for both launchers using a synthetic draw count. Both restarted without requesting preload. The native launcher's second play log confirmed that the original flags and repeated `--set` values survived the restart. These results establish two failure modes on upstream `a4d05e7`. The reporter's logs are still needed to identify which stage failed in their run. ### Validation - Proton Experimental `experimental-11.0-20261123b-x86_64`, PowerShell 7.7.0 for Windows, GeForce RTX 5070. Both new regressions passed. Across the selected Windows suites, 42 tests passed and one failed. - `pipeline::library::tests::a_rejected_blob_gives_an_empty_library` failed on both clean upstream and this branch because the D3D12 provider could not create an empty pipeline library. - All 26 host tests passed. MSVC all-target compile checks for `victory` and `victory-gpu` passed with default features and with diagnostics. `git diff --check` passed. - Native Windows, Windows PowerShell 5.1 and actual gameplay remain untested. Refs #493
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:01:23 +00:00
This pull request can be merged automatically.
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/563/head:github-bot/gh-563'
git switch 'github-bot/gh-563'

Merge

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