Skip to content

Easy Setup finishes for a game with both its copy and named inputs - #385

Merged
elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/issue-374-pr-fixes-8b1e77
Nov 21, 2026
Merged

elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/issue-374-pr-fixes-8b1e77

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #374: Easy Setup couldn't finish for a game whose recomplauncher.json has both game and named inputs (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)

  • The copy picked on the screen stays there until Set Up, and only setup_copy keeps it. With named inputs, Set Up started setup_inputs_run instead, which never got the copy. It found none in the game's record and stopped. setup_copy can't take over, because it turns away any game with named inputs.
  • setup_inputs_run now takes an optional copy. A new pick is checked the same way setup_copy checks one (copy_ok: the game's own folder, a file that's gone, the wrong game or build, including check.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.
  • Set Up hands over the copy in its box first, named inputs or not. On both screens (suBegin, tsBegin), a game with named inputs is set up with setup_inputs_run and 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 called setup_copy and were always turned away.

A game with a copy and named inputs is ready after its setup (lib.rs)

  • setup_inputs_run didn't keep the version of the setup step that built the game (prepare_version), which setup_copy does. For a game with game, 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)

  • With the player's own build chosen before (Use a Build You Already Have), profile_of points the game's settings, finished files and start command at that folder. setup_inputs_run kept 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.
  • Like setup_copy, it now leaves the player's own build out while it builds, and clears prebuilt and build_dir once a setup step has built the game. A setup with no setup step changes neither.

No change to recomplauncher.json or the schema: game plus inputs now works the way the docs already describe. A named input with role: "game" (the workaround Age of Decomp 0.1.2 uses) still works as before.

Testing

  • Bazzite (Linux) VM, on current main (Beta 67): cargo test --locked: 968 passed, 0 failed. node --test tests/*.test.cjs: 637 passed. node --check on the UI files CI checks.
  • New tests: 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 start setup_inputs_run; both screens send the copy.
  • In the running app, on Linux (Bazzite VM, debug build driven through tauri-driver) and on Windows 11 (VM, portable debug build driven through WebView2's DevTools port), on a test game with game + check.nup_build_id and an optional dlc input. Each of these behaves the same on both:
    • Current main: the issue's error, exactly ("That Copy Didn't Work: Choose your copy of the game first.").
    • A dump of another build: turned away by its build ID, nothing saved, nothing built.
    • The right dump: Ready to Play, the copy kept, --game=<dump> passed, Play starts the new build.
    • With the DLC chosen too: --game= and --dlc= both passed.
    • Set Up Again with the saved copy: works.
    • The window's Cancel Setup during the build: the build stopped, nothing saved, the game as it was.
    • A game on the player's own build, set up again: Play started the old build before the last commit, the new one after. The player's folder is left as it was.
  • A real catalog game on Windows: KarPur v0.4.0 (the catalog's one game with game and named inputs), with a Pokémon Violet base NSP, the 4.0.0 update NSP and prod.keys:
    • Current main: "Choose your copy of the game first."; KarPur's builder never starts.
    • This branch: Easy Setup hands all three to KarPur's builder (--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.
  • Not tested: Big Picture in the app (it uses the same code as the desktop window), and macOS beyond CI.

Still open from the issue, not in this PR:

  • dumps aren't checked for games with named inputs. Their setup deliberately doesn't read the whole copy (multi-input checksums are deferred).
  • The website's "Checks the player's copy" counting check.nup_build_id. The launcher's own developer check already counts it.

Patch notes (Beta 68)

  • Easy Setup finishes for games that ask for your copy and another file, like a DLC. Before, it stopped with "Choose your copy of the game first." Those games now also start the build Easy Setup made, even if you had chosen your own build before.

For the website (SDK guide): none to add: game with named inputs ("A second file from the player") now works as the guide already describes. Projects that moved the copy into a named input with role: "game" to work around this can go back to game, and get check and finding the copy in the player's folders back.

…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
Xarishark marked this pull request as ready for review November 21, 2026 00:36
@Xarishark
Xarishark marked this pull request as draft November 21, 2026 00:40
@Xarishark
Xarishark marked this pull request as ready for review November 21, 2026 01:15
@elripalda
elripalda merged commit 8986016 into elripalda:main Nov 21, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/issue-374-pr-fixes-8b1e77 branch November 23, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Easy Setup can't finish for a profile with game and named inputs

2 participants