Skip to content

Setup options can be required: Easy Setup waits until they're ticked - #280

Merged
elripalda merged 3 commits into
elripalda:mainfrom
Xarishark:feat/required-setup-option
Nov 17, 2026
Merged

elripalda merged 3 commits into
elripalda:mainfrom
Xarishark:feat/required-setup-option

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Some builds can't run until the player accepts something, like the Visual Studio Build Tools license SSX needs to compile on the player's PC. Until now a recomp had to enforce that itself. With "required": true on a prepare.options tick, the launcher does it:

  • Easy Setup, desktop and Big Picture: the buttons that start setup (choosing or dropping the copy, Use this, Set Up) stay greyed out until every required tick is on, with a line saying "Turn on the option marked Required to continue". The option shows a Required tag.
  • Only where it applies: an option hidden by os or gpu never holds setup back on that PC.
  • Licenses stay the player's: a required option with a license still starts unticked, even with "default": true. Without a license it can start ticked. Its args are passed like any ticked option.
  • Backend check too: setup_copy and setup_inputs_run refuse to start while a required option that applies is unticked, so the UI isn't the only guard. The screens wait for the tick to be saved before they start.
  • Big Picture fix on the way: in the named-inputs setup window, the option ticks couldn't be reached with a controller. They're items now (A turns one on or off), otherwise a required one would have locked SSX's setup in Big Picture.
  • Developer tab: the option check says when an option is required (and now says "starts off" for "default": false).

Docs: required in docs/recomplauncher.schema.json (boolean, default false) and in docs/DEVELOPERS.md under prepare.options, with a Build Tools license example. Older launchers ignore the field and show a plain tick, so the guide tells developers to keep their own check until their min is the release with this. The guide says 0.90.0-beta.64; change it if this ships in another release.

For the website (SDK guide): prepare.options items take "required": true: setup can't start until that tick is on (on the PCs the option is shown on), and a required option with a license still starts off. Example: a compiler license the build can't run without. A matching PR for the SDK repo brings its guide, agent file and schema up to date.

Tests:

  • cargo test (Windows VM): new tests in profile.rs (a required license option starts unticked and holds setup until ticked; one without a license can start ticked; one hidden by os/gpu doesn't count) and devtools.rs (the check names it), plus the schema parity tests.
  • node --test tests/ (340 pass), with the new tests/required-option.test.cjs.
  • The schema validates the existing examples, SSX's recomplauncher.json with "required": true, and rejects "required": "yes".

Not tried in the running app yet.

@elripalda
elripalda merged commit 63e7cc5 into elripalda:main Nov 17, 2026
6 checks passed
AmarilloNL pushed a commit to AmarilloNL/ssx-recomp that referenced this pull request Nov 18, 2026
…e license gate

A Visual Studio 2022 or newer without its C++ tools gets them added by its
own installer (modify) instead of a second installation, and one whose
tools are broken (no vcvars64.bat or msvcrt.lib) is modified, then
repaired, before the build gives up with 31.

The exit-32 license gate is gone: RecompLauncher enforces the required tick
itself (elripalda/RecompLauncher#280). --accept-vs-license stays accepted.
@Xarishark
Xarishark deleted the feat/required-setup-option 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