feat(migrate): reuse the previous launcher's game file automatically #315
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!315
Loading…
Reference in a new issue
No description provided.
Delete branch "riqmarmes/LongshotLauncher:feat/stable-game-file"
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?
Why. Players upgrading from Longshot Launcher 1.3.x have to find and pick their 20+ GiB game file (
.nup,.nx, or a dump folder) again: the launcher imports saves, mods and game options, but its preferences start fresh and file discovery only scans drive roots and one folder level down, so a game kept in a custom games folder is never found. On my PC the previous launcher'ssettings.jsonknew the.nupand the new profile had no game source at all.What changed.
src/game/stable_source.rsreads the previous launcher'ssettings.jsonread-only, validates the remembered.nup/.nxor dump folder, and links it as this launcher's source:launcher-settings.jsonplus the current profile'sgame, with a one-timestable-source-v1.jsonmarker.players::bind) and the--playshortcut path.docs/saves.md"Moving from the stable launcher", and the marker list indocs/paths.md.Tests.
stable_sourcecover automatic linking of a.nupor dump folder, an empty profile source, preserving a chosen source, retrying a missing file, waiting for a profile, and resuming an interrupted migration while preserving a later choice. They also cover the absence of a stable launcher and assert that itssettings.jsonstays byte-identical.cargo fmt --all -- --check;cargo clippy --locked --all-targets -- -D warnings;cargo test --locked→ on Windows 12 pre-existing environment-only failures (junction/symlink, Steam and bash tests), none in touched code;python -I scripts/translations.py; Toolingtests/test_release.py→ 46 tests OK..nupautomatically and left the old files byte-identical. No game build ran, and no game files, saves or anything made from them is in the change.tests/test_launcher_core.py, which needs a checkout of the pinned Longshot revision7015105c; CI covers that.Screenshots. None: the change is a first-start backend behaviour with no new visible screen.
Possibly related, for context:
@fix
b01d0fee008499ecef73Recommendation: Approve. The source migration has an observed end-to-end success, and the fix retains its intended behavior. The pull request is currently reported as unmergeable, and the supplied base diff includes substantial additional work that has not been fully reviewed here. Nothing blocking is left. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
8499ecef73. I rebased it ontomain(31e07291ab).Conflicts resolved
Changed
Nothing was built or run: the checks run again on the new head.
The launcher reuses a valid game source from the previous launcher and retries an interrupted settings write. This saves players from locating the file again, at the cost of additional migration state.
Checks: they run again on this head; a failure shows on the pull request.
Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes: the description reports an isolated end-to-end run that linked a real previous-launcher source. The new interruption cases have tests, but those tests have not yet been run on this head.
Other systems: The migration runs at GUI and shortcut startup and uses the shared profile and launcher settings. Windows and Linux use the same migration logic; the reported end-to-end run does not establish both platforms.
Switches: None added, changed or removed by the source migration.
Reviewed:
8499ecef73against31e07291ab: Read AGENTS.md, CONTRIBUTING.md, src/game/stable_source.rs and src/game/source.rs in full; read the fix diff, source-migration diff, and relevant profile and settings code. Skimmed the larger base diff and documentation changes; the other changed code, translations and UI files were not read in full. No review checklist or pull request template was found at the specified paths.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run. The description reports a successful isolated migration run; CI has not run on this head.
Overlaps and merge order: The supplied history contains preceding changes from other pull requests; their merge status is not available.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.