fix(builder): resolve launcher profiles and standalone folders by installation #2773
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2773
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:standalone-version-folders"
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?
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
--profilestill 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-dirandLONGSHOT_PROFILE_DIRand 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 untouchedhost_sources_tests.rs.Still to test:
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
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.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.
Possibly related, for context:
WIP: fix(builder): resolve launcher profiles and standalone folders by installationto fix(builder): resolve launcher profiles and standalone folders by installation