fix(portable): a portable launcher's builds follow its folder when it is renamed or moved (#140) #153
No reviewers
Labels
No labels
area/build
area/install
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!153
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/portable-rename-140"
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?
Renaming a portable launcher's folder, or a folder above it (
D:\CGames\Zelda OOT→ anything else), left every build "not built: its game is missing" and Play disabled until the old name came back, becausebuilds.jsonkept the old absolute paths.Fixes #140
What changes
builds.jsonrecords the home it was saved in (home; an older launcher reads past it).BuildRegistry.FollowHome: each build's folder (and its.nup/romfs/exefs) that was inside the launcher's folder is taken to the same place in the folder's new path, only when the old path is gone and the new one is there. A build elsewhere, and a copy of the folder whose original is still there, keep their paths.home) finds its old home by the data folder's name (LongshotLauncher-data), so the reporter's existing list is fixed on first start of the new launcher.Checks
python -I tests/test_launcher_core.py: 1378 checks passed (new: renamed folder follows, a build elsewhere stays, an old list withouthome, a copy whose original is still there).python -I tests/test_release.py: OK.No screen change, so no screenshots.
🤖 Generated with Claude Code
WIP: fix(portable): a portable launcher's builds follow its folder when it is renamed or moved (#140)to fix(portable): a portable launcher's builds follow its folder when it is renamed or moved (#140)