Repository navigation
A game's own build folder is never taken as the player's copy (#215) - #302
Merged
elripalda merged 1 commit intoNov 18, 2026
Merged
Conversation
…lda#215) Beta 63 made a game built from the player's copy adopt its own build folder as that copy when the original was moved: any folder with a hidden ".name_exefs" passed the copy check, and the saved copy was rewritten to point at it. The next build then handed the builder its own output as its input (--game {install}/Longshot --out {install}/Longshot), which Hookshot's and Longshot's builders refuse, and players renaming the hidden folder by hand forced a full rebuild. That folder is the builder's private layout, not the player's copy, so the launcher no longer guesses it: adopt_kept_copies, kept_copy and the ".name_exefs" guess in nup.rs are gone, and only a .nup or a folder with exefs/main is a copy. A saved copy that points at a build folder fails Play's existing re-check, which asks the player to pick their copy again. A game that plays without its copy says so in its manifest (prepare.done).
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
Main's elripalda#302 deleted Profile::game_folders beside the new kept_from_copy: kept_from_copy stays, game_folders goes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the failure in #215 where Hookshot and Longshot fail to build again after an update, and players end up renaming
.longshot_exefsby hand and rebuilding from scratch.What went wrong. Beta 63 (dea0273) let a game built from the player's copy fall back to its own build folder when the original
.nuphad moved. Any folder with a hidden.name_exefspassed the copy check, and the saved copy was rewritten to point at the build folder. Play kept working, but the next build ran the builder with--game {install}/Longshot --out {install}/Longshot: its own output as its input. Hookshot's and Longshot's builders only take a folder with plainexefsandromfs, so they refuse it.Why remove it instead of patching it. That hidden folder is the builder's private layout, not a standard: the launcher shouldn't guess it, and it shouldn't rewrite the player's choice to make a game look set up. It also treated an unplugged drive as a deleted copy and replaced the saved path for good.
What this does.
adopt_kept_copies,kept_copy, and the.name_exefsguess innup.rs. Only a.nup, or a folder withexefs/main, is a copy again..nupshould mean a short build: the builder skips re-reading a.nupit already unpacked.The proper way for a game to play without its copy is its manifest listing
prepare.done, the files a finished build has. Play already starts a built game without asking for the copy when those are there. Hookshot and Longshot don't list them yet; PRs for both projects are coming, along with a launcher flag for builders that can build again from what they keep.For players (patch notes): Hookshot and Longshot no longer fail to build after an update when your copy of the game was moved. If the launcher asks for your copy once, pick your
.nupagain.Tested: Rust and UI tests pass on Bazzite (Linux: 723 Rust, 352 UI) and Windows 11 (684 Rust, the full suite twice in a row; UI tests pass). Not run on macOS.