Repository navigation
Easy Setup keeps the player's choices: one status, setups as transactions, a mode per game - #307
Merged
elripalda merged 10 commits intoNov 19, 2026
Conversation
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.
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.
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
What changes (one commit each)
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.library.jsongets a format number, andlibrary_convert.rs(deleted at 1.0) moves older libraries over once.Tests
cargo test758 passed,node --test360 passed. Windows 11:cargo test719 passed,node --testpassed.adopt_kept_copies, which this branch had edited, so it goes): Linuxcargo test760 passed,node --test369 passed; Windows 11cargo test721 passed,node --testpassed. 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 in this PR
prepare.done; PRs for both projects are coming.Patch notes (players)
For the website (SDK guide)
preparesection: a game built from the player's copy that lists the files a finished build has inprepare.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. Withoutprepare.donethe launcher can't tell the build is finished and asks for the copy again when it's moved.