[pr-fix][startup] Use literal build and SDK paths in the NVIDIA launchers #240

Manually merged
TrustNo1 merged 2 commits from andrewpozdnakov7-jpg/Darner:port/7639-literal-repo-path into main 2026-12-05 04:45:50 +00:00
Contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

Windows PowerShell treats square brackets in the Darner executable and repository paths as wildcards. Use literal paths at the build checks and when entering the checkout.

Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: 7639c8c. Adapted by andrewpozdnakov7-jpg (GitHub profile).

How it was tested

  • Tested revision: d6f7ba0 on f3840d7.
  • Commands and results: Windows PowerShell fixture: an existing executable-name stub in a bracketed directory failed the wildcard check and passed the literal check. The literal directory change entered the exact directory. PowerShell parsing, xtask policy, and git diff --check passed.
  • Changes a default: no.
  • Follow-up 9d34494 applies literal-path checks to Streamline and FidelityFX discovery in both launchers, and to the separate frame-generation launcher build and working-directory paths. The bracketed-directory fixture found the three SDK filename stubs and darner.exe with literal checks. Both PowerShell scripts parsed, and xtask policy and git diff --check passed. Thanks to Jesper-A for the review.
  • Gates run on that revision: none of the three workspace-wide gates.
  • Coverage gaps: Temporary directory and an executable-name stub. No game, build, or native runner invocation.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: None found.
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: <!-- optional --> ## What it changes Windows PowerShell treats square brackets in the Darner executable and repository paths as wildcards. Use literal paths at the build checks and when entering the checkout. Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: 7639c8c. Adapted by [andrewpozdnakov7-jpg](https://git.gtahub.st/andrewpozdnakov7-jpg) ([GitHub profile](https://github.com/andrewpozdnakov7-jpg)). ## How it was tested - Tested revision: d6f7ba0 on f3840d7. - Commands and results: Windows PowerShell fixture: an existing executable-name stub in a bracketed directory failed the wildcard check and passed the literal check. The literal directory change entered the exact directory. PowerShell parsing, xtask policy, and git diff --check passed. - Changes a default: no. - Follow-up 9d34494 applies literal-path checks to Streamline and FidelityFX discovery in both launchers, and to the separate frame-generation launcher build and working-directory paths. The bracketed-directory fixture found the three SDK filename stubs and darner.exe with literal checks. Both PowerShell scripts parsed, and xtask policy and git diff --check passed. Thanks to [Jesper-A for the review](https://git.gtahub.st/TrustNo1/Darner/pulls/240#issuecomment-862342). - Gates run on that revision: none of the three workspace-wide gates. - Coverage gaps: Temporary directory and an executable-name stub. No game, build, or native runner invocation. ## Checklist - [ ] I ran this change in the game. - [x] This PR contains one change based on main. - [x] The diff follows docs/asset-policy.md. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: None found. - Replaces or overlaps: none found
Adapt locally saved VIctory-NVIDIA work from December 1, 2026 (7639c8c). Apply literal-path handling when checking the Darner binary and entering the checkout.

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg
Collaborator

Code-read review of d6f7ba0. I did not build or run it.

The four sites changed (play-nvidia.ps1:378, 382, 388, 465) are real bugs and -LiteralPath is the right fix. The title says "Accept repository paths with square brackets", though, and other places in the same script still pass a repo-derived path through wildcard matching. With the repo at, say, D:\Games\Darner [main]:

  • :205 and :208: Test-Path (Join-Path $_ 'sl.interposer.dll') and Test-Path (Join-Path $sl 'sl.interposer.dll'). $sl defaults to <repo>\nvidia-sdk\Streamline\bin\x64 (:203-207), where Get-NVIDIA-DLSS.cmd puts it. With [main] in the path both checks are false, so the launcher prints launcher.sdk.nvidia_missing and starts without DLSS or frame generation. The Resolve-Path on :210 is already literal.
  • :230, :241, :254: the same pattern for the FidelityFX DLLs under <repo>\amd-sdk\FidelityFX\bin: wrong candidate directory, or a false "FSR missing" warning (:233 is already literal).
  • :445: (Get-FileHash $darner).Hash on the NVIDIA_ADA_MFG path takes $darner as a wildcard -Path, so with brackets it fails.
  • scripts/play-nvidia-framegen.ps1 has the same patterns: Test-Path $darner (:122, :136, :188), Push-Location $repo (:132) and Test-Path (Join-Path $fx ...) / (Join-Path $sl ...) (:95, :119, :165, :181).

Suggested: make these literal as well (Test-Path -LiteralPath, Get-FileHash -LiteralPath), or narrow the title and body to "the darner.exe build check and working directory". As I read the body, its stub-exe test covers only the Test-Path and Push-Location lines, so please say so.

Overlap with #205. git merge-tree of the two heads reports a content conflict in scripts/build-darner.ps1. #205 renames play-nvidia.ps1 to build-darner.ps1 and rewrites the build block; its head (9e9e76496) still has non-literal Push-Location $repo (:430, :465, :601) and Test-Path $darner (:507, :509). Whichever merges second needs a rebase, and #240 would then have to be redone against the new file. Please list #205 under related PRs.

This comment was written with AI assistance (Claude Code).

Code-read review of d6f7ba0. I did not build or run it. The four sites changed (`play-nvidia.ps1:378`, `382`, `388`, `465`) are real bugs and `-LiteralPath` is the right fix. The title says "Accept repository paths with square brackets", though, and other places in the same script still pass a repo-derived path through wildcard matching. With the repo at, say, `D:\Games\Darner [main]`: - **`:205` and `:208`**: `Test-Path (Join-Path $_ 'sl.interposer.dll')` and `Test-Path (Join-Path $sl 'sl.interposer.dll')`. `$sl` defaults to `<repo>\nvidia-sdk\Streamline\bin\x64` (`:203-207`), where `Get-NVIDIA-DLSS.cmd` puts it. With `[main]` in the path both checks are false, so the launcher prints `launcher.sdk.nvidia_missing` and starts without DLSS or frame generation. The `Resolve-Path` on `:210` is already literal. - **`:230`, `:241`, `:254`**: the same pattern for the FidelityFX DLLs under `<repo>\amd-sdk\FidelityFX\bin`: wrong candidate directory, or a false "FSR missing" warning (`:233` is already literal). - **`:445`**: `(Get-FileHash $darner).Hash` on the NVIDIA_ADA_MFG path takes `$darner` as a wildcard `-Path`, so with brackets it fails. - `scripts/play-nvidia-framegen.ps1` has the same patterns: `Test-Path $darner` (`:122`, `:136`, `:188`), `Push-Location $repo` (`:132`) and `Test-Path (Join-Path $fx ...)` / `(Join-Path $sl ...)` (`:95`, `:119`, `:165`, `:181`). Suggested: make these literal as well (`Test-Path -LiteralPath`, `Get-FileHash -LiteralPath`), or narrow the title and body to "the darner.exe build check and working directory". As I read the body, its stub-exe test covers only the `Test-Path` and `Push-Location` lines, so please say so. **Overlap with #205.** `git merge-tree` of the two heads reports a content conflict in `scripts/build-darner.ps1`. #205 renames `play-nvidia.ps1` to `build-darner.ps1` and rewrites the build block; its head (9e9e76496) still has non-literal `Push-Location $repo` (`:430`, `:465`, `:601`) and `Test-Path $darner` (`:507`, `:509`). Whichever merges second needs a rebase, and #240 would then have to be redone against the new file. Please list #205 under related PRs. This comment was written with AI assistance (Claude Code).
andrewpozdnakov7-jpg changed title from [pr-fix][startup] Accept repository paths with square brackets to [pr-fix][startup] Use literal build and SDK paths in the NVIDIA launchers 2026-12-04 09:51:40 +00:00
Apply the literal path rule to Streamline, FidelityFX and frame-generation launcher build lookups. Cover the normal SDK discovery paths identified at #240 (comment).

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg

Co-authored-by: Jesper-Andersson <[email protected]>
Author
Contributor

Thanks for finding the remaining path calls. The current head, 9d34494, applies literal paths to build and SDK checks in both NVIDIA launchers. The executable hash lookup is also literal. The bracketed-directory fixture found all three SDK stubs, and both scripts parsed successfully. The launcher overlap with #205 remains for merge ordering.

Thanks for finding the remaining path calls. The current head, `9d34494`, applies literal paths to build and SDK checks in both NVIDIA launchers. The executable hash lookup is also literal. The bracketed-directory fixture found all three SDK stubs, and both scripts parsed successfully. The launcher overlap with #205 remains for merge ordering.
TrustNo1 manually merged commit 99c13f4df2 into main 2026-12-05 04:45:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!240
No description provided.