fix(builder): resolve launcher profiles and standalone folders by installation #2773

Merged
HumanBean merged 2 commits from HumanBean/Longshot:standalone-version-folders into main 2026-11-29 02:55:55 +00:00
Owner

Summary

Double-clicking a version could pick the shared Default profile even when that version lived outside the launcher library. A version in a recognized launcher library now tries the start-up profile, the last selected profile, and Default in that order. A separately downloaded copy stores its profile next to its builds, with path overrides for integrations such as RecompLauncher.

The builder uses the same builds path for Play, Build, and diagnostics. An explicit --profile still takes precedence. See the related launcher Storage changes in LongshotLauncher #361.

Testing

Tested: Linux, GeForce RTX 3090, NVIDIA driver 620.70.06. Double-clicked the game executable in a disposable launcher library and verified the running game used the configured start-up profile. Played a standalone copy with --builds-dir and LONGSHOT_PROFILE_DIR and verified the game executable and profile paths. Both reached the live control bridge and exited with status 0. The builder CLI also verified fallback from an invalid start-up profile to the last selected profile and then Default, plus standalone defaults. The builder and driver suites passed 262 tests. Locked Clippy passed for both crates. Workspace formatting also reports a pre-existing difference in the untouched host_sources_tests.rs.

Still to test:

  • Windows by hand: double-click the game in an installed library and verify the correct profile receives settings and saves. Play a standalone copy with redirected builds and profile directories.

Measurements

No performance measurement. This change resolves paths during builder startup and does not change the game loop.

Risks

A standalone copy that previously relied on the launcher's shared Default can point to that folder explicitly with --profile <dir>. When builds are stored elsewhere, start them through the builder so it can apply the chosen profile and find the executable.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary Double-clicking a version could pick the shared Default profile even when that version lived outside the launcher library. A version in a recognized launcher library now tries the start-up profile, the last selected profile, and Default in that order. A separately downloaded copy stores its profile next to its builds, with path overrides for integrations such as RecompLauncher. The builder uses the same builds path for Play, Build, and diagnostics. An explicit `--profile` still takes precedence. See the related launcher Storage changes in [LongshotLauncher #361](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/361). ## Testing **Tested:** Linux, GeForce RTX 3090, NVIDIA driver 620.70.06. Double-clicked the game executable in a disposable launcher library and verified the running game used the configured start-up profile. Played a standalone copy with `--builds-dir` and `LONGSHOT_PROFILE_DIR` and verified the game executable and profile paths. Both reached the live control bridge and exited with status 0. The builder CLI also verified fallback from an invalid start-up profile to the last selected profile and then Default, plus standalone defaults. The builder and driver suites passed 262 tests. Locked Clippy passed for both crates. Workspace formatting also reports a pre-existing difference in the untouched `host_sources_tests.rs`. **Still to test:** - Windows by hand: double-click the game in an installed library and verify the correct profile receives settings and saves. Play a standalone copy with redirected builds and profile directories. ## Measurements No performance measurement. This change resolves paths during builder startup and does not change the game loop. ## Risks A standalone copy that previously relied on the launcher's shared Default can point to that folder explicitly with `--profile <dir>`. When builds are stored elsewhere, start them through the builder so it can apply the chosen profile and find the executable. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
Assisted-by: Codex
fix(builder): resolve launcher profiles and standalone folders by installation
Some checks failed
CI / What the change needs (pull_request) Successful in 14s
CI / Third-party parts and guide screenshots (pull_request) Successful in 17s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 19s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m9s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m47s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m29s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m1s
CI / Website build and checks (pull_request) Successful in 9m39s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 26m11s
PR description / Title and description (pull_request_target) Failing after 6s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m7s
34402bd4c0
Assisted-by: Codex
Author
Owner

Tested in game: Linux, RTX 3090, NVIDIA 620.70.06: starting the game executable directly in a launcher library reached the game control bridge, and the running game had the configured start-up profile instead of the last selected profile.

Tested in game: Linux, RTX 3090, NVIDIA 620.70.06: starting the game executable directly in a launcher library reached the game control bridge, and the running game had the configured start-up profile instead of the last selected profile.
Member

Possibly related, for context:

  • PR #2762 feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding — Introduced builder CLI and profile resolution this PR refines.
  • PR #2708 feat(builder): organize game files and launch with a profile ID — Added installation-specific profile paths and managed startup.
  • PR #2710 fix(profile): load environment switches from the active profile — Recent profile lookup precedence changes in the same area.
Possibly related, for context: - PR #2762 feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding — Introduced builder CLI and profile resolution this PR refines. - PR #2708 feat(builder): organize game files and launch with a profile ID — Added installation-specific profile paths and managed startup. - PR #2710 fix(profile): load environment switches from the active profile — Recent profile lookup precedence changes in the same area.
HumanBean changed title from WIP: fix(builder): resolve launcher profiles and standalone folders by installation to fix(builder): resolve launcher profiles and standalone folders by installation 2026-11-29 02:55:48 +00:00
HumanBean deleted branch standalone-version-folders 2026-11-29 02:55:56 +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
MagicBeanDev/Longshot!2773
No description provided.