Skip to content

A game built from named files plays without them, and Free Up Space offers them - #407

Closed
Xarishark wants to merge 4 commits into
elripalda:mainfrom
Xarishark:feat/recomplaunch-issue-393-e8b255
Closed

Xarishark wants to merge 4 commits into
elripalda:mainfrom
Xarishark:feat/recomplaunch-issue-393-e8b255

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

Refs #393 (the PrimeRecomp part). #402 covers the manual setup part; this doesn't touch it.

What

A game built from named inputs now plays without them, as a game built from its copy does. PrimeRecomp copies about 7 GB out of the player's extracted game while it sets up. Until now the launcher asked for that folder again as soon as it was moved or deleted, so players had to keep two copies.

How

  • The rule (inputs::plays_built): when the stored fingerprint no longer matches, the game still counts as set up if all of these hold:
    • a setup with those files finished. The fingerprint is written only then, and picking new files or replacing keys clears it;
    • prepare.version is the one it was built with;
    • the build is still there: every prepare.done file, and the folder start plays from;
    • start has no {input:...}, and none of the player's inputs has a destination.
  • Where it's read: Play, the game page and Big Picture go through inputs_now and easy_status, so they agree. The setup status is built, so the page says "doesn't need it: it's already built", as it does for a copy.
  • Play then places only what the launcher keeps itself (shared keys, DLSS): inputs::launcher_kept.
  • Free Up Space offers the one file or folder a game was built from. It never offers anything inside the game's folder, or anything another game uses.
  • Games that take a game copy too are unchanged: the copy rules still decide for them.

Not in this PR

  • After an update that changes prepare.version, Easy Setup still asks for the files. There's no keeps_copy-style rebuild without them yet.
  • A game set up from several files (discs, DLC) gets no Free Up Space.
  • The Longshot reports in Functionality getting worse with every update #393.

For the website (SDK guide)

The SDK guide's named inputs part can say: once the setup step has built the game, players can move or delete the files they picked, as long as start doesn't use {input:...} and no input has a destination. List prepare.done so the launcher knows the build is finished. This needs launcher Beta 68 or newer.

Tested

bazzite-kde: 992 Rust tests and 672 UI tests pass. New tests cover each condition of the rule, the built status, and Free Up Space: offered, shared with another game, and inside the game's folder. Not tried in the app with a real PrimeRecomp dump.

Once its setup step has built the game, the player's own files can be moved or deleted, as a
copy can: Play, the game page and Big Picture count it as set up while its start doesn't use
{input:...}, none of those files goes in the game's folder, the build is still there and
prepare.version is the one it was built with. Play then places only the launcher's own files
(shared keys, DLSS).
A game set up from one named file or folder (PrimeRecomp's extracted game) gets Free Up Space
once it plays without it, by the same rule as a copy: never for something inside the game's
folder or used by another game. SETUP-INPUTS.md and DEVELOPERS.md say what lets a developer's
game play without the player's files, with an example.
…too (elripalda#393)

A game set up from several named files now offers all of them once it plays without them, or
none while one is still used by another game. The confirmation names each file.
@Xarishark

Copy link
Copy Markdown
Collaborator Author

Closing: this is folded into a bigger change. The launcher will stop treating the game's copy (game) as its own thing: named inputs become the one way a game asks for files, with everything game can do (its checks, dumps, update file) as input options, and game read as an input. The rule this PR adds (a game built from its files plays without them, and Free Up Space offers them) becomes the one rule for every game, so it moves into that PR instead of landing here first. The branch stays for its code and tests.

@Xarishark Xarishark closed this Nov 21, 2026
@Xarishark
Xarishark deleted the feat/recomplaunch-issue-393-e8b255 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.

1 participant