fix(scripts): resolve -Exe and DLSS folders before the launcher changes folder #92

Manually merged
github merged 1 commit from github-bot/gh-92 into gh-pr/92/base 2026-11-28 19:03:08 +00:00 AGit
Owner

@⁠Caasares on GitHub · 2026-11-27 17:57 UTC · original
Caasares:fix/app-launcher-relative-exe → main · +6 −0 · 1 files · 1 commits · merged 2026-11-28 19:01 UTC

scripts/play-foxhound.ps1 checks a relative -Exe from the folder the launcher was started in, then changes to the repository's folder to start the title. The title is then looked for in the wrong folder, so a relative path that exists where the user is does not open:

C:\games\dump> ..\repo\scripts\play-foxhound.ps1 -Exe .\game_scarlett_master.exe
  victory run .\game_scarlett_master.exe ...     (working folder: the repository)
  -> cannot open .\game_scarlett_master.exe

The same happens to a relative VICTORY_STREAMLINE_DIR or VICTORY_FIDELITYFX_DIR. The DLLs are found from the caller's folder, but the relative value is handed to the title from the repository's folder. The run then silently goes without DLSS or FSR 3, and the log header records the relative value.

Fix

Make the paths absolute before the folder changes:

  • $Exe, right after its existence check;
  • the DLSS folder and the FidelityFX folder, when they exist.

Absolute paths are unchanged. Six lines, all in scripts/play-foxhound.ps1.

Verification

No automated test covers the scripts (CI runs clippy and cargo test), so this was checked with a stand-in victory.exe: a compiled program that prints its working folder and whether it can open the title's executable. It sits at target\release\victory.exe in a copy of the repository layout.

  • Before: -Exe .\game_scarlett_master.exe from the game folder gives stub: cannot open .\game_scarlett_master.exe (relative to cwd). With VICTORY_STREAMLINE_DIR=.\sl, the log header says VICTORY_STREAMLINE_DIR=.\sl.
  • After: stub: opened C:\...\game_scarlett_master.exe, and the log header says VICTORY_STREAMLINE_DIR=C:\...\sl.
  • Absolute -Exe behaves as before. The file parses with no errors (Parser::ParseFile).

No Rust code changed.

**@⁠Caasares** on GitHub · 2026-11-27 17:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/92) `Caasares:fix/app-launcher-relative-exe` → `main` · +6 −0 · 1 files · 1 commits · merged 2026-11-28 19:01 UTC `scripts/play-foxhound.ps1` checks a relative `-Exe` from the folder the launcher was started in, then changes to the repository's folder to start the title. The title is then looked for in the wrong folder, so a relative path that exists where the user is does not open: ``` C:\games\dump> ..\repo\scripts\play-foxhound.ps1 -Exe .\game_scarlett_master.exe victory run .\game_scarlett_master.exe ... (working folder: the repository) -> cannot open .\game_scarlett_master.exe ``` The same happens to a relative `VICTORY_STREAMLINE_DIR` or `VICTORY_FIDELITYFX_DIR`. The DLLs are found from the caller's folder, but the relative value is handed to the title from the repository's folder. The run then silently goes without DLSS or FSR 3, and the log header records the relative value. ### Fix Make the paths absolute before the folder changes: - `$Exe`, right after its existence check; - the DLSS folder and the FidelityFX folder, when they exist. Absolute paths are unchanged. Six lines, all in `scripts/play-foxhound.ps1`. ### Verification No automated test covers the scripts (CI runs clippy and `cargo test`), so this was checked with a stand-in `victory.exe`: a compiled program that prints its working folder and whether it can open the title's executable. It sits at `target\release\victory.exe` in a copy of the repository layout. - Before: `-Exe .\game_scarlett_master.exe` from the game folder gives `stub: cannot open .\game_scarlett_master.exe (relative to cwd)`. With `VICTORY_STREAMLINE_DIR=.\sl`, the log header says `VICTORY_STREAMLINE_DIR=.\sl`. - After: `stub: opened C:\...\game_scarlett_master.exe`, and the log header says `VICTORY_STREAMLINE_DIR=C:\...\sl`. - Absolute `-Exe` behaves as before. The file parses with no errors (`Parser::ParseFile`). No Rust code changed.
play-foxhound.ps1 checked a relative -Exe from the folder it was started in,
then changed to the repository's folder to start the title, so the title was
looked for there and was not found. A relative VICTORY_STREAMLINE_DIR or
VICTORY_FIDELITYFX_DIR was passed on the same way and the DLLs were not found
either. Make these absolute before the folder changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:00:00 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Tested PR commit: e29d2c03b44d173604e3537d6b6a7a3d4bc494ce.

An authored stub reproduced the relative executable-path problem: main df2daaf could not open the relative game path after changing to the repository folder; this PR could. One remaining edge case: VICTORY_MENU_ARGS still contained the original relative -Exe in the PR fixture, because it is constructed before $Exe is resolved. This is source/argument evidence for a potential F1-restart issue, not an in-game reproduction. SDK-directory behavior was not tested in this fixture (DLSS was off).

Verified independently with OpenAI Codex assistance. No gameplay or performance claims.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/92#issuecomment-7229809349) Tested PR commit: `e29d2c03b44d173604e3537d6b6a7a3d4bc494ce`. An authored stub reproduced the relative executable-path problem: main df2daaf could not open the relative game path after changing to the repository folder; this PR could. One remaining edge case: `VICTORY_MENU_ARGS` still contained the original relative `-Exe` in the PR fixture, because it is constructed before `$Exe` is resolved. This is source/argument evidence for a potential F1-restart issue, not an in-game reproduction. SDK-directory behavior was not tested in this fixture (DLSS was off). Verified independently with OpenAI Codex assistance. No gameplay or performance claims. <!-- victory-native-validation-20261128 -->
github-bot referenced this pull request from a commit 2026-11-28 19:02:00 +00:00
github-bot changed target branch from main to gh-pr/92/base 2026-11-28 19:02:58 +00:00
github manually merged commit e29d2c03b4 into gh-pr/92/base 2026-11-28 19:03:00 +00:00
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!92
No description provided.