Repository navigation
Easy Setup finishes for a game with both its copy and named inputs - #385
Merged
elripalda merged 4 commits intoNov 21, 2026
Merged
Conversation
…eeps it once it works setup_inputs_run gets an optional copy: picked on the screen, it's checked as setup_copy checks a copy, built from, and kept only when the setup has worked. Without one it uses the copy set up before, as it did.
Set Up started setup_inputs_run without the copy in its box, so it stopped with "Choose your copy of the game first." (issue 374). Both screens now hand the copy over, and the wrong-copy check and Use It Anyway work there too.
…ed to build again setup_inputs_run now keeps the version of the setup step that built it, as setup_copy does. Without it the game's status compared the step's version with an empty one and asked for a new build straight away. Found running Easy Setup in the app.
…ayer's own build setup_inputs_run now leaves the player's own build folder out while it builds and clears it once it has worked, as setup_copy does. Before, Easy Setup built a fresh game but Play kept starting the player's old build, and the game's settings were written into that build's folder.
Xarishark
marked this pull request as ready for review
November 21, 2026 00:36
Xarishark
marked this pull request as draft
November 21, 2026 00:40
Xarishark
marked this pull request as ready for review
November 21, 2026 01:15
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 #374: Easy Setup couldn't finish for a game whose
recomplauncher.jsonhas bothgameand namedinputs(the shape DEVELOPERS.md shows under "A second file from the player"). It stopped with "That copy didn't work: Choose your copy of the game first." Running it in the app turned up two more problems on the same path, fixed here too. One commit each.The copy picked in Easy Setup reaches the setup (
lib.rs,ui/setup-steps.js,ui/app.js,ui/tv.js)setup_copykeeps it. With named inputs, Set Up startedsetup_inputs_runinstead, which never got the copy. It found none in the game's record and stopped.setup_copycan't take over, because it turns away any game with named inputs.setup_inputs_runnow takes an optionalcopy. A new pick is checked the same waysetup_copychecks one (copy_ok: the game's own folder, a file that's gone, the wrong game or build, includingcheck.nup_build_id). It's used for the build and kept only once the setup has worked, so a setup that fails or is stopped leaves the game as it was. Without a pick it uses the copy set up before, as it did.suBegin,tsBegin), a game with named inputs is set up withsetup_inputs_runand that copy. So the wrong-copy check, Use It Anyway, a converted copy and Play after an update that needs a new build all work for these games too. Before, these paths calledsetup_copyand were always turned away.A game with a copy and named inputs is ready after its setup (
lib.rs)setup_inputs_rundidn't keep the version of the setup step that built the game (prepare_version), whichsetup_copydoes. For a game withgame, the status then compared the step's version with an empty one and asked for a new build straight after a setup that had worked. Games with named inputs only never reach that check.A setup with named inputs that builds the game takes over from the player's own build (
lib.rs)profile_ofpoints the game's settings, finished files and start command at that folder.setup_inputs_runkept it while building and after, so Easy Setup built a fresh game, but Play kept starting the player's old build, and the settings went into its folder.setup_copy, it now leaves the player's own build out while it builds, and clearsprebuiltandbuild_dironce a setup step has built the game. A setup with no setup step changes neither.No change to
recomplauncher.jsonor the schema:gameplusinputsnow works the way the docs already describe. A named input withrole: "game"(the workaround Age of Decomp 0.1.2 uses) still works as before.Testing
cargo test --locked: 968 passed, 0 failed.node --test tests/*.test.cjs: 637 passed.node --checkon the UI files CI checks.inputs_copy(no pick, the copy from before, a new pick, a pick that's gone, the game's own folder), ready after a setup with a copy and named inputs, the player's own build cleared only when a setup step built the game. UI: Set Up hands over the copy (picked or found) for a game with named inputs; named inputs alone still startsetup_inputs_run; both screens send the copy.game+check.nup_build_idand an optionaldlcinput. Each of these behaves the same on both:--game=<dump>passed, Play starts the new build.--game=and--dlc=both passed.gameand named inputs), with a Pokémon Violet base NSP, the 4.0.0 update NSP andprod.keys:--game,--update,--keys). The builder then stops with its own rule for an NSP base ("An NSP base game needs --firmware with system .nca files"); the launcher shows that and keeps nothing. A full KarPur build (an XCI dump or console firmware) wasn't run: the launcher's side of a setup that works is what the test game covers.Still open from the issue, not in this PR:
dumpsaren't checked for games with named inputs. Their setup deliberately doesn't read the whole copy (multi-input checksums are deferred).check.nup_build_id. The launcher's own developer check already counts it.Patch notes (Beta 68)
For the website (SDK guide): none to add:
gamewith namedinputs("A second file from the player") now works as the guide already describes. Projects that moved the copy into a named input withrole: "game"to work around this can go back togame, and getcheckand finding the copy in the player's folders back.