Repository navigation
A game can say what it needs from the PC, and the launcher tells players when theirs is older (system) - #336
Merged
Conversation
…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.
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.
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
systemin recomplauncher.json. One part each forwindows,linuxandmacos, all optional:versionis "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.glibcis for Linux.graphicsis 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.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.systemthat don't read as a version, a graphics API it doesn't know, or a Linuxversion(Linux builds give glibc).systemsection in the developer guide with the example; the schema'ssystemandsystemGraphics.New texts in every language (6).
Tests
All on main through #309 (108a6a8) merged in.
cargo teston 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 teston 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.Patch notes (players)
For the website (SDK guide)
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.