Skip to content

A game can say what it needs from the PC, and the launcher tells players when theirs is older (system) - #336

Merged
elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/system-needs
Nov 20, 2026
Merged

elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/system-needs

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

From #313 (point 4): a game says, for each system it ships a build for, the oldest Windows or macOS it runs on, the oldest glibc for its Linux build, and its graphics API. The launcher checks what it can and says so plainly; it never stops the game.

What

  1. system in recomplauncher.json. One part each for windows, linux and macos, all optional:
    "system": {
      "windows": { "version": "10", "graphics": { "d3d12": "12_0" } },
      "linux": { "glibc": "2.35", "graphics": { "vulkan": "1.3" } },
      "macos": { "version": "13", "graphics": { "metal": "3" } }
    }
    version is "10", "11" (told by Windows' build, 22000 and later) or a build like "10.0.19041" on Windows, and "13" or "14.4" on macOS. glibc is for Linux. graphics is one of vulkan, opengl, d3d12, d3d11, d3d9, metal, with its oldest version. Left out of the serialized profile when absent, so setups fingerprinted before it stay set up.
  2. The check. The PC's own Windows version (the registry, as the ping already reads it), macOS version (sw_vers) and glibc (gnu_get_libc_version, so inside the Flatpak it's the runtime's, the one its games get). No new dependency. A Windows build through Proton on Linux is checked against nothing. A version the PC can't tell is never counted against it.
  3. The game page. Its "ready to play" list (the same list the desktop and Big Picture show) gets a row each: "glibc 2.35 or newer" with what this PC has, red when it's older; "Graphics: Vulkan 1.3", shown only.
  4. Play. On a PC older than the game says, a toast names what it needs and what the PC has ("Hopper needs glibc 2.35 or newer, and this PC has 2.31. It may not start."), and the game still starts. A trail note too.
  5. Developer tools. Yellow, never blocking: values in system that don't read as a version, a graphics API it doesn't know, or a Linux version (Linux builds give glibc).
  6. Docs and schema. A system section in the developer guide with the example; the schema's system and systemGraphics.

New texts in every language (6).

Tests

All on main through #309 (108a6a8) merged in.

  • cargo test on Linux (Bazzite VM, distrobox): 892 passed, 0 failed (1 ignored, from main), schema parity tests included. New: sysneeds.rs (versions as numbers, Windows 11 by build, Proton checks nothing, what the PC can't tell, glibc read on this PC, bad values), profile.rs (parses, writes nothing when absent), devtools.rs (bad values named, good ones left alone). Schema parity tests pass.
  • cargo test on Windows 11 (VM): 827 passed, 0 failed (1 ignored).
  • node --test tests/*.test.cjs: 540 passed on Linux; 529 passed, 0 failed on Windows (the other 11 skip themselves there). tools/launcher-i18n.py --check: its output is identical to main's. New tests/system-needs.test.cjs: the rows (red, met, unknown, graphics, Proton), the start message, one listener for both views, every text in every language.
  • Not run: macOS.

Patch notes (players)

  • A game's page says what the game needs from your PC, and the launcher tells you when your system is older than that.

For the website (SDK guide)

  • Add system: for each system you ship a build for, the oldest Windows or macOS version (version), the oldest glibc for the Linux build (glibc), and the graphics API with its oldest version (graphics). The launcher checks the version and glibc, warns the player when their PC is older, and never stops the game.

…hecks it

system has a part for each system a game ships a build for: the oldest Windows or macOS (version), the oldest glibc for its Linux build, and its graphics API with its oldest version. The launcher reads the PC's own Windows version, macOS version and glibc (no new dependency), and on Play says when the PC is older, but still starts the game. A Windows build through Proton is checked against nothing, and a version the PC can't tell never counts against it. The developer tools name values in system they can't read. Schema and developer guide with an example; system is left out of the serialized profile when absent, so earlier setups stay set up.
… PC is older

The ready-to-play list the desktop and Big Picture share gets a row for the system version or glibc a game's build needs, with what this PC has, and one for its graphics API, shown only. Starting it on an older PC says what it needs and what the PC has. The new texts are in every language.
Both sides kept: devtools runs system_item and E's outside_item; Play sets RECOMPLAUNCHER_DATA, then says when the PC is older than the game needs; app.js listens for system-old and D's unpacked; the translation files keep both sets of new lines.
The merge kept both sides at the end of each translation file, and F's side still had Verified Update, which elripalda#291 removed. The launcher-i18n check now matches main's apart from F's own texts.
@elripalda
elripalda merged commit 29c32ec into elripalda:main Nov 20, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/system-needs 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