[pr-fix][startup] Keep relative DARNER_HOME in the directory the launcher was started from #63

Manually merged
TrustNo1 merged 0 commits from SmallDevBigNothing/Darner:codex/launcher-relative-home into main 2026-12-03 18:36:54 +00:00
Contributor

What it changes

When DARNER_HOME is relative, play-nvidia.ps1 resolves it for the menu and logs, then starts Darner from the repository directory. The child receives the original relative path and looks for saves and caches in a different profile. Pass the already resolved path to the child.

How it was tested

  • Compared 295621e and c38d01d on Windows PowerShell 5.1 and PowerShell 7. Ran the launcher from a separate directory with spaces in the profile path and a probe in place of darner.exe. With DARNER_HOME relative, the probe found the saved-profile marker only after the fix. Absolute paths and an unset DARNER_HOME worked on both revisions.
  • The PowerShell parser, git diff --check, and cargo run --locked --quiet -p xtask -- policy --staged passed. Game execution and workspace gates were outside this launcher test.

Checklist

  • 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: #59 changes RAM defaults in the same launcher. This patch changes the profile path passed to the child.
## What it changes When `DARNER_HOME` is relative, `play-nvidia.ps1` resolves it for the menu and logs, then starts Darner from the repository directory. The child receives the original relative path and looks for saves and caches in a different profile. Pass the already resolved path to the child. ## How it was tested - Compared `295621e` and `c38d01d` on Windows PowerShell 5.1 and PowerShell 7. Ran the launcher from a separate directory with spaces in the profile path and a probe in place of `darner.exe`. With `DARNER_HOME` relative, the probe found the saved-profile marker only after the fix. Absolute paths and an unset `DARNER_HOME` worked on both revisions. - The PowerShell parser, `git diff --check`, and `cargo run --locked --quiet -p xtask -- policy --staged` passed. Game execution and workspace gates were outside this launcher test. ## Checklist - [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: #59 changes RAM defaults in the same launcher. This patch changes the profile path passed to the child.
TrustNo1 manually merged commit 1983ce001d into main 2026-12-03 18:36:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
TrustNo1/Darner!63
No description provided.