Preserve launcher paths and working directory on F1 restart #563

Merged
ghptc merged 3 commits from upstream-pr/563 into main 2026-11-29 08:16:59 +00:00
ghptc commented 2026-11-28 00:58:40 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-28T00:58:40Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5535153400 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/563). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-28T00:58:40Z. --- 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
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!563
No description provided.