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

Merged
Caasares merged 1 commit from upstream-pr/92 into main 2026-11-28 19:01:28 +00:00
Caasares commented 2026-11-27 17:57:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Caasares on 2026-11-27T17:57:18Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5531006306 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/92). Originally posted by [Caasares](https://github.com/Caasares) on 2026-11-27T17:57:18Z. --- `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.
1tsethan commented 2026-11-27 23:01:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:01:28Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7229809349 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/92#issuecomment-7229809349). Originally posted by [1tsethan](https://github.com/1tsethan) on 2026-11-27T23:01:28Z. --- 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 -->
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!92
No description provided.