Validate the launcher’s --streamline folder before preparation or play #293

Closed
github-bot wants to merge 0 commits from github-bot/gh-293 into next AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-12-01 10:50 UTC · original
Yoshi-233:feat/launcher-streamline-dir → next · +28 −14 · 2 files · 116 commits · closed without merging

Fixes #162.

The launcher on next accepts --streamline <folder>. This change validates the folder before an unattended launch or preparation. The README uses --streamline; --streamline-dir remains an alias. Pass the unpacked SDK root or the directory containing sl.interposer.dll, for example:

Foxhound.exe --game "D:\Library\My Copy" --streamline "D:\SDKs\Streamline" --prepare

A missing or invalid SDK folder leaves the saved path alone. The interactive launcher shows a message. In --play or --prepare mode the launcher writes the message to stderr and exits with code 1 before starting either action. In particular, --streamline --prepare still recognizes --prepare as an action. Valid relative paths are saved as absolute paths. Successful setup keeps the DLSS behavior from next, including the existing switch from Off to Balanced.

Verification on the rebased revision (2c5a069 → 53da3c1): compiled the complete launcher as a Windows x64 executable on Linux using Roslyn and .NET Framework 4.8 reference assemblies. A headless harness exercised the actual argument handling and startup callback with temporary profiles. All nine cases passed (three on the unmodified base), covering paths with spaces, both flag names, saved settings, and invalid input before or after an action flag. The staged asset check passed. This revision hasn't been run in the Windows GUI.

**@⁠Yoshi-233** on GitHub · 2026-12-01 10:50 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/293) `Yoshi-233:feat/launcher-streamline-dir` → `next` · +28 −14 · 2 files · 116 commits · closed without merging Fixes #162. The launcher on `next` accepts `--streamline <folder>`. This change validates the folder before an unattended launch or preparation. The README uses `--streamline`; `--streamline-dir` remains an alias. Pass the unpacked SDK root or the directory containing `sl.interposer.dll`, for example: ```bat Foxhound.exe --game "D:\Library\My Copy" --streamline "D:\SDKs\Streamline" --prepare ``` A missing or invalid SDK folder leaves the saved path alone. The interactive launcher shows a message. In `--play` or `--prepare` mode the launcher writes the message to stderr and exits with code 1 before starting either action. In particular, `--streamline --prepare` still recognizes `--prepare` as an action. Valid relative paths are saved as absolute paths. Successful setup keeps the DLSS behavior from `next`, including the existing switch from Off to Balanced. **Verification on the rebased revision** (`2c5a069` → `53da3c1`): compiled the complete launcher as a Windows x64 executable on Linux using Roslyn and .NET Framework 4.8 reference assemblies. A headless harness exercised the actual argument handling and startup callback with temporary profiles. All nine cases passed (three on the unmodified base), covering paths with spaces, both flag names, saved settings, and invalid input before or after an action flag. The staged asset check passed. This revision hasn't been run in the Windows GUI.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:54:21 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 12:22 UTC · original

Checked: nothing harmful in it, and the handling of a wrong folder (keep the saved one; exit code 1 with --prepare or --play) is what the command line should do.

One thing has to change before it can go in: the release now in testing already carries a command-line argument for the same thing, spelled --streamline <folder>, beside --game <folder>. Two spellings for one setting would confuse people. Please rebase onto main once that release is out and keep its --streamline as the name, with your validation and messages; accepting --streamline-dir as a second spelling of the same argument is fine. The README lines then need the one name.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 12:22 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/293#issuecomment-7311030201) Checked: nothing harmful in it, and the handling of a wrong folder (keep the saved one; exit code 1 with `--prepare` or `--play`) is what the command line should do. One thing has to change before it can go in: the release now in testing already carries a command-line argument for the same thing, spelled `--streamline <folder>`, beside `--game <folder>`. Two spellings for one setting would confuse people. Please rebase onto main once that release is out and keep its `--streamline` as the name, with your validation and messages; accepting `--streamline-dir` as a second spelling of the same argument is fine. The README lines then need the one name.
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-12-02 01:14 UTC · original

Thanks for pointing me to the spelling in the upcoming release. I prepared the validation on top of next at 2c5a069. The README uses --streamline throughout. The original PR spelling is accepted as an alias. A valid folder keeps the DLSS behavior already in next. A missing or invalid folder keeps the saved path, and --play or --prepare returns 1. In particular, --streamline --prepare leaves --prepare available as an option.

I compiled the full launcher to a Windows x64 executable on Linux and checked the actual argument and startup-handler code with temporary profiles in a headless harness. Nine cases passed, including relative paths with spaces, both spellings, and missing input before or after an action flag. I haven't run this revision in the Windows GUI. I’ll rebase the PR onto main after the release as requested. Preview commit

**@⁠Yoshi-233** on GitHub · 2026-12-02 01:14 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/293#issuecomment-7331464554) Thanks for pointing me to the spelling in the upcoming release. I prepared the validation on top of `next` at `2c5a069`. The README uses `--streamline` throughout. The original PR spelling is accepted as an alias. A valid folder keeps the DLSS behavior already in `next`. A missing or invalid folder keeps the saved path, and `--play` or `--prepare` returns 1. In particular, `--streamline --prepare` leaves `--prepare` available as an option. I compiled the full launcher to a Windows x64 executable on Linux and checked the actual argument and startup-handler code with temporary profiles in a headless harness. Nine cases passed, including relative paths with spaces, both spellings, and missing input before or after an action flag. I haven't run this revision in the Windows GUI. I’ll rebase the PR onto main after the release as requested. [Preview commit](https://github.com/Yoshi-233/foxhound/commit/53da3c16681f9c37323cc75319c93aa5901717ba)
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-02 01:48 UTC · original

Thank you, that's exactly the shape we'd like: --streamline as the spelling, the old one kept as an alias, and a missing folder keeping the saved path with --play and --prepare returning 1. We can't see those commits yet: the PR still points at yesterday's commit, and none of your fork's branches holds the version on next. Could you push it to this PR's branch (a force-push of the rebased branch is fine)? We'll review it then and take it into the next release's candidate, with credit.

**@⁠readmet3xt-lab** on GitHub · 2026-12-02 01:48 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/293#issuecomment-7332134937) Thank you, that's exactly the shape we'd like: `--streamline` as the spelling, the old one kept as an alias, and a missing folder keeping the saved path with `--play` and `--prepare` returning 1. We can't see those commits yet: the PR still points at yesterday's commit, and none of your fork's branches holds the version on `next`. Could you push it to this PR's branch (a force-push of the rebased branch is fine)? We'll review it then and take it into the next release's candidate, with credit.
github-bot changed title from Accept --streamline-dir in the Windows launcher to Validate the launcher’s --streamline folder before preparation or play 2026-12-02 03:08:41 +00:00
github-bot changed target branch from main to next 2026-12-02 03:08:41 +00:00
github-bot force-pushed github-bot/gh-293 from d025c1c164 to 53da3c1668 2026-12-02 03:08:42 +00:00 Compare
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-12-02 03:05 UTC · original

Pushed 53da3c1 to this PR’s source branch and set the base to next at 2c5a069. The Files changed tab now shows one launcher change and its README update. The canonical flag is --streamline, and --streamline --prepare reports the missing folder and exits with code 1. Ready for your review. Two-file diff

**@⁠Yoshi-233** on GitHub · 2026-12-02 03:05 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/293#issuecomment-7333519019) Pushed `53da3c1` to this PR’s source branch and set the base to `next` at `2c5a069`. The Files changed tab now shows one launcher change and its README update. The canonical flag is `--streamline`, and `--streamline --prepare` reports the missing folder and exits with code 1. Ready for your review. [Two-file diff](https://git.gtahub.st/github/readmet3xt-lab--foxhound/pulls/293/files)
github-bot closed this pull request 2026-12-02 07:54:50 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.