fix(scripts): resolve -Exe and DLSS folders before the launcher changes folder #92
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/92"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Caasares on 2026-11-27T17:57:18Z.
scripts/play-foxhound.ps1checks a relative-Exefrom 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:The same happens to a relative
VICTORY_STREAMLINE_DIRorVICTORY_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;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-invictory.exe: a compiled program that prints its working folder and whether it can open the title's executable. It sits attarget\release\victory.exein a copy of the repository layout.-Exe .\game_scarlett_master.exefrom the game folder givesstub: cannot open .\game_scarlett_master.exe (relative to cwd). WithVICTORY_STREAMLINE_DIR=.\sl, the log header saysVICTORY_STREAMLINE_DIR=.\sl.stub: opened C:\...\game_scarlett_master.exe, and the log header saysVICTORY_STREAMLINE_DIR=C:\...\sl.-Exebehaves as before. The file parses with no errors (Parser::ParseFile).No Rust code changed.
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
df2daafcould not open the relative game path after changing to the repository folder; this PR could. One remaining edge case:VICTORY_MENU_ARGSstill contained the original relative-Exein the PR fixture, because it is constructed before$Exeis 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.