Skip to content

Easy Setup keeps the player's choices: one status, setups as transactions, a mode per game - #307

Merged
elripalda merged 10 commits into
elripalda:mainfrom
Xarishark:feat/hookshot-longshot-setup-revert-1d9188
Nov 19, 2026
Merged

elripalda merged 10 commits into
elripalda:mainfrom
Xarishark:feat/hookshot-longshot-setup-revert-1d9188

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Easy Setup's state is kept properly: what the player picked is kept apart from whether the game is set up, a setup that's cancelled or fails leaves the game as it was, and switching who sets a game up never erases a pick. This is the root of the Hookshot/Longshot reports where a game showed Set up again after a cancelled Easy Setup (all OSes), and of several smaller cases like it.

Draft until its turn: it goes after #302 (the kept-copy removal). When #302 merges I merge main in: one small conflict, a line this branch edited inside adopt_kept_copies, which #302 deletes. It merges cleanly with #303 and #304.

What was wrong

  • Status was signalled by deleting what the player chose. Play cleared the copy to mean "build again" (a new setup version, a missing build folder), a copy failing a newer check was cleared, and turning Easy Setup back on forgot the program the player picked.
  • Setups wrote at the start, not the end. Setting a game up again dropped the player's own build folder before anything ran; cancelling or a failure didn't put it back.
  • "Is it set up?" had many answers: Play, the game page, Before You Play and Big Picture each worked it out on their own, mostly from the copy alone, so a finished build or the player's own build read as not set up.
  • Who sets a game up was spread over four places (Set Up By Hand, the Skip Easy Setup list in the settings, a picked program re-skipping Easy Setup at every start, own build folders), and switching between them erased the others.

What changes (one commit each)

  1. One answer for whether a game is set up (setup_state.rs), from the profile, the player's choices and the files on disk, never by changing the record. Play, the game page, Before You Play and Big Picture all use it. Play no longer clears the copy.
  2. Easy Setup's window is a transaction. It keeps how the game was set up when it opens; closing it without a setup that worked puts it back (also for runs left in the background, and at the next start after the launcher closed mid-setup). The player's own build folder is let go only once the launcher's build has worked. A game's own setup program closed before it finished no longer marks a playable game not set up.
  3. Who sets a game up is the game's own mode: Easy Setup, the player (Skip Easy Setup), or Set Up By Hand. Switching only changes the mode: a picked program, build folder or hand setup stays recorded, so switching back finds it as it was. Skip Easy Setup for every game sits over each game's mode. library.json gets a format number, and library_convert.rs (deleted at 1.0) moves older libraries over once.
  4. Set Up Again doesn't read an unchanged copy whole again. The checksum of a copy read without errors is kept with its path, size and date; the same file unchanged (ticking DLSS, say) skips the 24 GB read with the same verdict.
  5. A game built from a copy that's gone says it doesn't need it: "Your copy isn't here anymore. {name} doesn't need it: it's already built." on every copy row (desktop and Big Picture), with Change instead of a main Insert It. Translated into every language.
  6. A game's own setup asked for again is never written down before it runs. Its four reasons (output missing, program not found, build older than an update, the game asking) are worked out per Play; only a setup that finishes changes the record. The once-only reasons are marked only by Play, so a desktop or Steam shortcut asking no longer uses up an update's request.
  7. A game is added to Steam only when it's fully set up. Keep Steam in Sync asks what Play asks (a setup program still due, then the one answer above) instead of only checking that a copy is there: a game whose setup step changed, whose build is gone or whose update is missing isn't added (Steam would open the launcher instead of the game), and a game built from a copy that's gone since is.

Tests

  • Linux (Bazzite): cargo test 758 passed, node --test 360 passed. Windows 11: cargo test 719 passed, node --test passed.
  • New tests: the status order (11), the setup window as a transaction (7 + 1 for a game's own setup), the modes and their round trips, the converter (7, including an already-converted file and odd files), the copy check, the copy rows.
  • The converter on a copy of a real library: only the format number was added.
  • The real app (built from this branch on Linux, driven with tauri-driver): the Easy Setup switch off, a program picked, on, off again (the pick is kept while Easy Setup is on and started again when it's off); and Hookshot built with its copy gone (Play, and the new copy rows on desktop and in Big Picture).
  • After merging main (A game's own build folder is never taken as the player's copy (#215) #302, The launcher stops guessing where a game saves #304; one conflict: A game's own build folder is never taken as the player's copy (#215) #302 deletes adopt_kept_copies, which this branch had edited, so it goes): Linux cargo test 760 passed, node --test 369 passed; Windows 11 cargo test 721 passed, node --test passed. The app built from the merge starts, reads the library, and shows The launcher stops guessing where a game saves #304's Saves card on the game page.
  • Not run: macOS.

Not in this PR

  • After an update of a game whose release is its installer, the launcher still asks to build it again on Play; a cancelled one asks again next Play. Offering "play the version you have" there is a separate question.
  • Hookshot and Longshot show as built without their copy only once their manifests list prepare.done; PRs for both projects are coming.

Patch notes (players)

  • Cancelling or a failed Easy Setup leaves your game as it was. It no longer turns a game you could play back to Set Up, or forgets your copy, your own build or the program you picked.
  • Turning Easy Setup off and on keeps your choices: the program you picked for a game is used again when you turn Easy Setup off again.
  • Setting a game up again for a new option doesn't read your copy again when it hasn't changed.
  • A game built from your copy says when it doesn't need the copy anymore, instead of asking for it.
  • Keep Steam in Sync adds a game only when it's fully set up, so Steam always starts the game itself.

For the website (SDK guide)

  • In the prepare section: a game built from the player's copy that lists the files a finished build has in prepare.done (and doesn't take {game} when it starts) plays without the player's copy, and the launcher tells the player it doesn't need it. Without prepare.done the launcher can't tell the build is finished and asks for the copy again when it's moved.

setup_state.rs works out, from what the player chose and what's on disk,
whether a game is set up and if not why (no copy, a wrong copy, files to
choose, its update, a changed setup step, a build folder that's gone, ...).
It never changes the library. game_setup returns it, Play goes by it, and
the game page, Before You Play and Big Picture show Set up only when it
says so, instead of each working it out from the copy alone.

Play no longer clears the player's copy to mean "build again" (a changed
prepare.version, a missing build folder), nor when a copy fails a newer
check or lacks files after placing it: the setup that opens starts from
their copy, and cancelling it leaves the game as it was. A game built from
the copy, or the player's own build, now shows Play on its page as Play
already treated it.
Easy Setup's window is now a transaction. When it opens, the core keeps
how the game is set up (its copy, update, named files, fingerprints, own
build and setup step version); a setup that works lets go of that, and
closing the window otherwise puts it back. A run left in the background
puts the game back itself if it fails, and a launcher that closed
mid-setup puts it back at its next start. Desktop and Big Picture both
tell the core when the window opens and closes.

Setting the game up again no longer drops the player's own build before
anything has run (setup_copy, Use My Previous Setup): it's let go only
once the launcher's build has worked. A game's own setup program that's
closed before it finishes no longer marks the game not set up or drops
its program.
Easy Setup in steps replaced the separate window for named files, so setupOpened now comes from setupModal alone, and the post-install check uses the new 'steps' stage.
…layer picked

Each installed game has a mode: Easy Setup, the player's own (Skip Easy Setup), or Set Up By
Hand. It replaces working this out from the Skip Easy Setup list in the settings, Set Up By
Hand being on, and a picked program turning Easy Setup off at every start.

Switching only changes the mode. Turning Easy Setup back on no longer lets go of the program the
player picked: it stays recorded, unused while Easy Setup sets the game up, and Play starts it
again when the switch goes back off. Turning Set Up By Hand off keeps its setup for next time.
Skip Easy Setup for every game sits over each game's mode, so turning it off leaves every game
as it was. A setup that works in Easy Setup's window hands the game back to Easy Setup, and a
switch made while that window is open goes back with the rest when it closes without one.

library.json gets a format number. library_convert.rs moves an older library over once, as it
is read: each game's mode from the old fields, and the skip list keeps only games not installed
yet (a tick made before installing becomes the game's mode when it's installed). It is deleted
at 1.0.
Easy Setup reads the player's whole copy for its checksum on every run, so ticking NVIDIA DLSS
and setting a Switch 2 game up again read its 24 GB package first. The checksum is now kept with
the file's path, size and modified time as soon as a read finishes without errors, and a later run
with the same file, unchanged, uses it: the verdict is the same, judged against the current list
of known dumps. Another file, or the same one changed, is read again.
A game built from the player's copy that doesn't read the copy when it starts plays without it,
and Play already knew. Its copy rows still asked for it: "Insert it" as the main button in Game
Settings and in Big Picture, with the copy's description. Now every copy row (Before You Play,
Game Settings, Big Picture's row and its side panel) says "Your copy isn't here anymore. {name}
doesn't need it: it's already built.", and picking a copy again is a plain Change, for building
it again. It's the core's answer (ready, built) that decides, so a game that still reads its copy
at start asks for it as before. Translated into every language.
For games that ship a setup program (TotK-Setup.exe, an installer that builds the game), the
check before each Play wrote "not set up" into the game's record in four cases: what the setup
makes is missing, the program it builds wasn't found, its build is older than an update, and the
game's last output asked for its setup. It wrote it before the setup ran, so a setup closed before
it finished left the game asking for it on every Play, even when the version that played before
still could.

Those four are now worked out for each Play and never stored: only a setup that finishes changes
the record, as a cancelled one already left it alone. The two once-only reasons keep their marks,
and only Play sets them (pending_for_play): a desktop or Steam shortcut, or Use Default, asking
whether a setup is due no longer uses up an update's or the game's request before Play runs it.
Keep Steam in Sync had its own rules for "ready": it checked that a copy was there, so a game
whose setup step changed, whose build was gone, whose update was missing or whose copy failed the
game's check was added, and Steam opened the launcher to set it up instead of starting the game.
A game built from a copy that's gone since was left out, though it plays. And for a game with its
own setup program it looked only at the stored flag.

It now asks what Play asks: a setup program still due (without using up Play's once-only
reasons), then the one answer for whether the game is set up (plays_as_set_up, one game of
several judged with its own files). A game that isn't ready keeps its Steam entry as it was.
A removed adopt_kept_copies; B had changed a line inside it, so the function goes, as on main.
@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 00:07
@elripalda
elripalda merged commit f8d8705 into elripalda:main Nov 19, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/hookshot-longshot-setup-revert-1d9188 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.

2 participants