From 693b2d30662235ad3feed83f02e566972956d70b Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 19:01:20 +0200 Subject: [PATCH 1/3] A game can say what it needs from the PC (system), and the launcher checks 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. --- docs/DEVELOPERS.md | 27 ++++ docs/recomplauncher.schema.json | 37 +++++ src-tauri/src/devtools.rs | 32 ++++- src-tauri/src/lib.rs | 24 ++++ src-tauri/src/manage.rs | 7 + src-tauri/src/profile.rs | 17 +++ src-tauri/src/sysneeds.rs | 246 ++++++++++++++++++++++++++++++++ 7 files changed, 389 insertions(+), 1 deletion(-) create mode 100644 src-tauri/src/sysneeds.rs diff --git a/docs/DEVELOPERS.md b/docs/DEVELOPERS.md index 26243ca1..15cb99d4 100644 --- a/docs/DEVELOPERS.md +++ b/docs/DEVELOPERS.md @@ -344,6 +344,33 @@ the one on recomplauncher.com is used. Before anyone installs your release, the that list to go on: ask for your games to be listed there (with their art), or the release shows as one game until it's installed. Launchers older than 0.90 Beta 36 skip it and show one tile. +### `system`: what your game needs from the PC + +Say what each of your builds needs, so a player with an older PC is told why the game won't start +instead of seeing it close: + +```json +"system": { + "windows": { "version": "10", "graphics": { "d3d12": "12_0" } }, + "linux": { "glibc": "2.35", "graphics": { "vulkan": "1.3" } }, + "macos": { "version": "13", "graphics": { "metal": "3" } } +} +``` + +- One part for each system you ship a build for. A part or a key you leave out is no known need. +- `version`: the oldest Windows (`"10"`, `"11"`, or a build like `"10.0.19041"`) or macOS (`"13"`, + `"14.4"`). +- `glibc`, for Linux: the oldest glibc your build runs with. That's the glibc of the system you + built it on, so build on an old one (see [Releases that install cleanly](#releases-that-install-cleanly)). +- `graphics`: the API you draw with (`vulkan`, `opengl`, `d3d12`, `d3d11`, `d3d9` or `metal`) and + its oldest version. + +The game's page lists these with the rest of what it needs, and the launcher checks the system's +version and glibc against the player's PC: when the PC is older, the page shows it in red and the +player is told when they press Play. The game still starts, since the PC may manage anyway. The +graphics version is only shown. A Windows build played through Proton on Linux is checked against +nothing: its Windows version means nothing there. + ## Settings: in the launcher ### `config`: your settings files diff --git a/docs/recomplauncher.schema.json b/docs/recomplauncher.schema.json index 0e3ef3e5..b7f805ac 100644 --- a/docs/recomplauncher.schema.json +++ b/docs/recomplauncher.schema.json @@ -907,6 +907,37 @@ "additionalProperties": false } }, + "system": { + "description": "What your game needs from the PC, for each system you ship a build for. The launcher checks what it can (the Windows or macOS version, glibc on Linux) and tells the player when their PC is older, but never stops the game. A system or a key left out is no known need.", + "type": "object", + "properties": { + "windows": { + "type": "object", + "properties": { + "version": { "type": "string", "pattern": "^\\d+(\\.\\d+)*$", "description": "The oldest Windows it runs on: \"10\", \"11\", or a build like \"10.0.19041\"." }, + "graphics": { "$ref": "#/definitions/systemGraphics" } + }, + "additionalProperties": false + }, + "linux": { + "type": "object", + "properties": { + "glibc": { "type": "string", "pattern": "^\\d+(\\.\\d+)*$", "description": "The oldest glibc your Linux build runs with, like \"2.35\": the glibc of the system you built it on." }, + "graphics": { "$ref": "#/definitions/systemGraphics" } + }, + "additionalProperties": false + }, + "macos": { + "type": "object", + "properties": { + "version": { "type": "string", "pattern": "^\\d+(\\.\\d+)*$", "description": "The oldest macOS it runs on, like \"13\" or \"14.4\"." }, + "graphics": { "$ref": "#/definitions/systemGraphics" } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, "requires": { "description": "The launcher features this profile uses. Parts needing a feature the player's launcher doesn't have are left out (no Easy Setup, no settings tab for it); the game still installs and plays.", "type": "array", @@ -923,6 +954,12 @@ }, "additionalProperties": false, "definitions": { + "systemGraphics": { + "description": "The graphics API the build draws with, and the oldest version it needs: {\"vulkan\": \"1.3\"}. Shown on the game's page; the launcher doesn't check it.", + "type": "object", + "propertyNames": { "enum": ["vulkan", "opengl", "d3d12", "d3d11", "d3d9", "metal"] }, + "additionalProperties": { "type": "string", "pattern": "^\\d+([._]\\d+)*$" } + }, "programs": { "type": "array", "minItems": 1, diff --git a/src-tauri/src/devtools.rs b/src-tauri/src/devtools.rs index 8364c840..7965b331 100644 --- a/src-tauri/src/devtools.rs +++ b/src-tauri/src/devtools.rs @@ -11,7 +11,7 @@ use std::path::{Path, PathBuf}; use tauri::State; const FILE: &str = "recomplauncher.json"; -const TOP_KEYS: &[&str] = &["$schema", "format", "name", "repo", "game", "start", "config", "folders", "exit_codes", "settings", "groups", "actions", "prepare", "looks", "mods", "saves", "inputs", "requires", "min", "games"]; +const TOP_KEYS: &[&str] = &["$schema", "format", "name", "repo", "game", "start", "config", "folders", "exit_codes", "settings", "groups", "actions", "prepare", "looks", "mods", "saves", "inputs", "requires", "min", "games", "system"]; fn now() -> u64 { std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map(|d| d.as_secs()).unwrap_or(0) @@ -470,9 +470,23 @@ fn check_profile(p: &profile::Profile, dir: &Path, g: &Installed, items: &mut Ve items.extend(version_item(&pr.version)); items.extend(keeps_copy_items(p, dir)); } + items.extend(system_item(p)); level } +/// `system`: values the launcher can't read as a version, or a graphics API it doesn't know. Those +/// are ignored, so the PC is never checked against them. +fn system_item(p: &profile::Profile) -> Option { + let bad = crate::sysneeds::bad_values(p.system.as_ref()?); + if bad.is_empty() { + return None; + } + Some(warn( + format!("Not read in \"system\": {}", bad.join(", ")), + format!("Versions are numbers with dots (\"10\", \"2.35\", \"1.3\"), and graphics APIs are {}. Linux builds give glibc, not a version.", crate::sysneeds::GRAPHICS.join(", ")), + )) +} + /// prepare.keeps_copy: run again without the copy, leaving out the arguments with {game} in them. /// Only what would make that run go wrong, or never happen, is said; nothing stops the game. fn keeps_copy_items(p: &profile::Profile, dir: &Path) -> Vec { @@ -625,6 +639,22 @@ mod tests { assert!(items[0].text.contains("starts off") && items[0].text.contains("required"), "{}", items[0].text); } + #[test] + fn a_system_value_the_launcher_cant_read_is_named() { + let p: crate::profile::Profile = serde_json::from_str(r#"{"format":1,"system":{"linux":{"glibc":"latest","graphics":{"vulkan":"1.3"}}}}"#).unwrap(); + let item = super::system_item(&p).unwrap(); + assert_eq!(item.level, "warn"); + assert!(item.text.contains("system.linux.glibc"), "{}", item.text); + } + + #[test] + fn a_system_part_that_reads_well_is_left_alone() { + let p: crate::profile::Profile = serde_json::from_str(r#"{"format":1,"system":{"windows":{"version":"10","graphics":{"d3d12":"12_0"}},"linux":{"glibc":"2.35"}}}"#).unwrap(); + assert!(super::system_item(&p).is_none()); + let none: crate::profile::Profile = serde_json::from_str(r#"{"format":1}"#).unwrap(); + assert!(super::system_item(&none).is_none()); + } + #[test] fn the_setup_steps_version_is_named_in_the_check() { assert!(super::version_item("").is_none()); diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index f647f43f..470512f0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -54,6 +54,7 @@ pub mod setup_state; #[cfg(test)] mod setup_window_tests; pub mod sysenv; +pub mod sysneeds; mod emus; pub mod roms; pub mod saves; @@ -3084,6 +3085,13 @@ fn start_game_with_monitor_context( .env("RECOMPLAUNCHER_VERSION", env!("CARGO_PKG_VERSION")) .env("RECOMPLAUNCHER_MODE", if BIG_PICTURE.load(Ordering::Relaxed) { "bigpicture" } else { "desktop" }) .env("RECOMPLAUNCHER_PAD", profile::pad_now()); + // The PC is older than the game says it needs: said, so a game that won't start isn't a mystery, + // but it still starts (the developer may be wrong, or the PC may manage). + let too_old = profile_of(&st, id, &g).and_then(|p| system_needs(&p, &g)).map(|(_, old)| old).unwrap_or_default(); + if !too_old.is_empty() { + trail::note(format!("Play {id}: this PC is older than the game needs: {too_old:?}")); + let _ = app.emit("system-old", json!({ "name": g.name, "old": too_old })); + } // A Python set up elsewhere on the PC (PYTHONHOME, PYTHONPATH) breaks the Python some games // carry inside them ("No module named 'encodings'"). Games with their own Python never want them. if ext != "py" { @@ -5008,6 +5016,10 @@ struct Setup { build_at: Option, /// Set up, or why not: the answer Play gives too (setup_state). status: setup_state::Status, + /// What the installed build needs from the PC (`system`), for the game page's list. + system: Option, + /// What of that this PC is too old for: shown in red, and said when it plays. + system_old: Vec, } #[derive(Serialize, Clone, Debug, PartialEq)] @@ -5076,6 +5088,7 @@ fn game_setup(app: AppHandle, st: State<'_, App>, id: String) -> Option { let built = p.build_done(&g.path) == Some(true) || (g.prebuilt && p.build_folder_here(&g.path).is_some()); let set_up = if p.inputs.is_empty() { copy.is_some() || built } else { inputs_ready }; let status = easy_status(&st, &id, &g, &p, inputs_ready); + let system = system_needs(&whole, &g); Some(Setup { inputs: inputs::rows(&p, &g, &st.dir).unwrap_or_default(), inputs_error: inputs::validate(&p).err(), @@ -5134,9 +5147,20 @@ fn game_setup(app: AppHandle, st: State<'_, App>, id: String) -> Option { spare: if pick.is_some() || setup_busy(&id) { None } else { spare_copy(&g, &p, &st.lib.lock().unwrap().installed.values().cloned().collect::>()) }, build_at: if pick.is_some() { None } else { build_folder_now(&st, &id, &g) }, status, + system_old: system.as_ref().map(|(_, old)| old.clone()).unwrap_or_default(), + system: system.map(|(n, _)| n), }) } +/// What the installed build needs from the PC (`system` in its recomplauncher.json), and what of it +/// this PC is too old for. +fn system_needs(p: &profile::Profile, g: &Installed) -> Option<(sysneeds::OsNeeds, Vec)> { + let build_os = if is_windows_build(g) { "windows" } else { assets::os_now() }; + let needs = p.system.as_ref()?.for_build(build_os)?.clone(); + let old = sysneeds::too_old(&needs, build_os, assets::os_now(), sysneeds::os_version().as_deref(), sysneeds::glibc_version().as_deref()); + Some((needs, old)) +} + /// A game built into a folder of its own (its setup's, or the player's build in use): that folder, /// when it's there. fn build_folder_now(st: &App, id: &str, g: &Installed) -> Option { diff --git a/src-tauri/src/manage.rs b/src-tauri/src/manage.rs index 064071fc..4d5596eb 100644 --- a/src-tauri/src/manage.rs +++ b/src-tauri/src/manage.rs @@ -205,10 +205,17 @@ pub struct PcCheck { pub clang: Option, /// Python 3's version ("3.12.4"); empty when there's none. For setups that run Python. pub python: Option, + /// Windows' ("10.0.22631") or macOS's ("14.5") version, for what a game says it needs + /// (sysneeds.rs). None on Linux. + pub os_version: Option, + /// glibc's version ("2.39") on Linux, for a game's Linux build. + pub glibc: Option, } pub fn pc_check() -> PcCheck { let mut c = PcCheck { cores: std::thread::available_parallelism().map(|n| n.get()).unwrap_or(1), ..Default::default() }; + c.os_version = crate::sysneeds::os_version(); + c.glibc = crate::sysneeds::glibc_version(); #[cfg(target_arch = "x86_64")] { c.avx = std::arch::is_x86_feature_detected!("avx"); diff --git a/src-tauri/src/profile.rs b/src-tauri/src/profile.rs index 45ac8e37..df58d128 100644 --- a/src-tauri/src/profile.rs +++ b/src-tauri/src/profile.rs @@ -60,6 +60,10 @@ pub struct Profile { /// Whether looks (ReShade filters) can be used with it, and how. #[serde(default)] pub looks: Option, + /// What it needs from the PC, by system (sysneeds.rs). Left out of the profile when it isn't + /// given, so setups fingerprinted before it existed stay as they were. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub system: Option, /// Where the game keeps its saves: folders, files, or `*` patterns, with the same {local}, /// {documents}, {install}... as everywhere else. Backups and cloud saves copy these. #[serde(default)] @@ -2612,6 +2616,19 @@ fn place_z64(from: &Path, to: &Path) -> std::io::Result { #[cfg(test)] mod tests { + #[test] + fn system_reads_each_part_and_a_profile_without_it_writes_none() { + let p: super::Profile = serde_json::from_str(r#"{"format":1,"system":{"linux":{"glibc":"2.35","graphics":{"vulkan":"1.3"}},"windows":{"version":"11"}}}"#).unwrap(); + let s = p.system.as_ref().unwrap(); + assert_eq!(s.for_build("linux").unwrap().glibc, "2.35"); + assert_eq!(s.for_build("linux").unwrap().graphics["vulkan"], "1.3"); + assert_eq!(s.for_build("windows").unwrap().version, "11"); + assert!(s.for_build("macos").is_none()); + // Setups fingerprinted from the profile before `system` existed stay set up. + let plain: super::Profile = serde_json::from_str(r#"{"format":1}"#).unwrap(); + assert!(!serde_json::to_string(&plain).unwrap().contains("system")); + } + #[test] fn easy_setup_follows_the_websites_rule() { let p = |v: serde_json::Value| serde_json::from_value::(v).unwrap().easy_setup(); diff --git a/src-tauri/src/sysneeds.rs b/src-tauri/src/sysneeds.rs new file mode 100644 index 00000000..288308d5 --- /dev/null +++ b/src-tauri/src/sysneeds.rs @@ -0,0 +1,246 @@ +//! What a game needs from the PC (`system` in its recomplauncher.json), by system: the oldest +//! Windows or macOS it runs on, the oldest glibc for its Linux build, and its graphics API. The +//! launcher compares what it can (the system's version, glibc) with this PC, and says so when the +//! PC is too old. It never stops the game: the developer may be wrong, or the PC may manage. + +use serde::{Deserialize, Serialize}; +use std::collections::BTreeMap; + +/// `system`: one part for each system the game ships a build for. A part or a key left out is no +/// known need. +#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)] +pub struct SystemNeeds { + #[serde(default, skip_serializing_if = "Option::is_none")] + pub windows: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub linux: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub macos: Option, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)] +pub struct OsNeeds { + /// The oldest Windows ("10", "11", or a build like "10.0.19041") or macOS ("13", "14.4"). + #[serde(default, skip_serializing_if = "String::is_empty")] + pub version: String, + /// The oldest glibc its Linux build runs with ("2.35"). + #[serde(default, skip_serializing_if = "String::is_empty")] + pub glibc: String, + /// The graphics API it draws with and its oldest version: {"vulkan": "1.3"}. + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] + pub graphics: BTreeMap, +} + +/// The graphics APIs `system.*.graphics` names. +pub const GRAPHICS: [&str; 6] = ["vulkan", "opengl", "d3d12", "d3d11", "d3d9", "metal"]; + +impl SystemNeeds { + /// The part for a build for `os` ("windows", "linux", "macos"). A Windows build played + /// through Proton has the Windows part, though nothing of it is checked there. + pub fn for_build(&self, os: &str) -> Option<&OsNeeds> { + match os { + "windows" => self.windows.as_ref(), + "linux" => self.linux.as_ref(), + "macos" => self.macos.as_ref(), + _ => None, + } + } +} + +/// Something this PC has older than the game asks for: what ("windows", "macos", "glibc"), the +/// oldest the game runs on, and what the PC has. +#[derive(Debug, Clone, Serialize, PartialEq)] +pub struct TooOld { + pub what: &'static str, + pub want: String, + pub have: String, +} + +/// What of `needs` a PC on `pc_os` with these versions doesn't have. `build_os` is the build's own +/// system: a Windows build through Proton checks nothing (its Windows version means nothing there, +/// and Proton brings its own libraries). A version the PC can't tell is never counted against it. +pub fn too_old(needs: &OsNeeds, build_os: &str, pc_os: &str, os_version: Option<&str>, glibc: Option<&str>) -> Vec { + if build_os != pc_os { + return vec![]; + } + // Linux has no one version to ask for: its games are checked by glibc. + if pc_os == "linux" { + let want = needs.glibc.trim(); + return match glibc { + Some(have) if !want.is_empty() && !at_least(have, want) => vec![TooOld { what: "glibc", want: want.to_string(), have: have.to_string() }], + _ => vec![], + }; + } + let want = needs.version.trim(); + let Some(have) = os_version.filter(|_| !want.is_empty()) else { return vec![] }; + let windows = pc_os == "windows"; + let ok = if windows { windows_at_least(have, want) } else { at_least(have, want) }; + if ok { + return vec![]; + } + vec![TooOld { what: if windows { "windows" } else { "macos" }, want: want.to_string(), have: have.to_string() }] +} + +/// Whether version `have` is `want` or newer, part by part as numbers: 2.39 is newer than 2.4. +/// Parts that aren't numbers count as 0, and a missing part as 0 (14 is 14.0). +pub fn at_least(have: &str, want: &str) -> bool { + let parts = |v: &str| -> Vec { v.trim().split('.').map(|p| p.trim().parse().unwrap_or(0)).collect() }; + let (h, w) = (parts(have), parts(want)); + for i in 0..h.len().max(w.len()) { + let (a, b) = (h.get(i).copied().unwrap_or(0), w.get(i).copied().unwrap_or(0)); + if a != b { + return a > b; + } + } + true +} + +/// Windows says it's 10.0. for 10 and 11 alike: Windows 11 is build 22000 and later. +pub fn windows_at_least(have: &str, want: &str) -> bool { + let build = have.split('.').nth(2).and_then(|b| b.trim().parse::().ok()).unwrap_or(0); + match want.trim() { + "11" => at_least(have, "10") && build >= 22000, + w => at_least(have, w), + } +} + +/// This PC's glibc ("2.39"), the one the launcher runs with: inside the Flatpak that's the +/// runtime's, which is also the one its games get. +pub fn glibc_version() -> Option { + #[cfg(all(target_os = "linux", target_env = "gnu"))] + { + extern "C" { + fn gnu_get_libc_version() -> *const std::os::raw::c_char; + } + // SAFETY: glibc returns a pointer to a static, NUL-terminated string. + let v = unsafe { std::ffi::CStr::from_ptr(gnu_get_libc_version()) }; + return Some(v.to_string_lossy().trim().to_string()).filter(|s| !s.is_empty()); + } + #[allow(unreachable_code)] + None +} + +/// This PC's Windows ("10.0.22631") or macOS ("14.5") version; None on Linux, whose games are +/// checked by glibc instead. +pub fn os_version() -> Option { + #[cfg(windows)] + { + return Some(crate::win::os_version()).filter(|v| !v.is_empty()); + } + #[cfg(target_os = "macos")] + { + let out = std::process::Command::new("/usr/bin/sw_vers").arg("-productVersion").output().ok()?; + return Some(String::from_utf8_lossy(&out.stdout).trim().to_string()).filter(|v| !v.is_empty()); + } + #[allow(unreachable_code)] + None +} + +/// Values in `system` that don't read as a version, and graphics APIs it doesn't know: for the +/// developer tools. +pub fn bad_values(s: &SystemNeeds) -> Vec { + let looks_like_version = |v: &str| !v.trim().is_empty() && v.trim().split('.').all(|p| !p.is_empty() && p.chars().all(|c| c.is_ascii_digit())); + let mut out = vec![]; + for (os, part) in [("windows", &s.windows), ("linux", &s.linux), ("macos", &s.macos)] { + let Some(part) = part else { continue }; + if !part.version.is_empty() && !looks_like_version(&part.version) { + out.push(format!("system.{os}.version \"{}\"", part.version)); + } + if !part.glibc.is_empty() && (os != "linux" || !looks_like_version(&part.glibc)) { + out.push(format!("system.{os}.glibc \"{}\"", part.glibc)); + } + if os == "linux" && !part.version.is_empty() { + out.push("system.linux.version (Linux builds give glibc instead)".to_string()); + } + for (api, v) in &part.graphics { + if !GRAPHICS.contains(&api.as_str()) { + out.push(format!("system.{os}.graphics.{api}")); + } else if !v.is_empty() && !v.split(['.', '_']).all(|p| !p.is_empty() && p.chars().all(|c| c.is_ascii_digit())) { + out.push(format!("system.{os}.graphics.{api} \"{v}\"")); + } + } + } + out +} + +#[cfg(test)] +mod tests { + use super::*; + + fn needs(json: &str) -> SystemNeeds { + serde_json::from_str(json).unwrap() + } + + #[test] + fn versions_compare_as_numbers_part_by_part() { + assert!(at_least("2.39", "2.35")); + assert!(at_least("2.35", "2.35")); + assert!(!at_least("2.31", "2.35")); + assert!(at_least("2.39", "2.4"), "39 is more than 4"); + assert!(at_least("14", "14.0")); + assert!(!at_least("13.6", "14")); + } + + #[test] + fn windows_11_is_told_by_its_build() { + assert!(windows_at_least("10.0.22631", "11")); + assert!(!windows_at_least("10.0.19045", "11")); + assert!(windows_at_least("10.0.19045", "10")); + assert!(!windows_at_least("10.0.17763", "10.0.19041")); + } + + #[test] + fn an_old_glibc_is_named_with_both_versions() { + let n = needs(r#"{"linux":{"glibc":"2.35","graphics":{"vulkan":"1.3"}}}"#); + let got = too_old(n.for_build("linux").unwrap(), "linux", "linux", None, Some("2.31")); + assert_eq!(got, vec![TooOld { what: "glibc", want: "2.35".into(), have: "2.31".into() }]); + assert!(too_old(n.for_build("linux").unwrap(), "linux", "linux", None, Some("2.39")).is_empty()); + } + + #[test] + fn an_old_windows_or_mac_is_named() { + let n = needs(r#"{"windows":{"version":"11"},"macos":{"version":"14"}}"#); + let win = too_old(n.for_build("windows").unwrap(), "windows", "windows", Some("10.0.19045"), None); + assert_eq!(win[0].what, "windows"); + let mac = too_old(n.for_build("macos").unwrap(), "macos", "macos", Some("13.6"), None); + assert_eq!(mac, vec![TooOld { what: "macos", want: "14".into(), have: "13.6".into() }]); + } + + #[test] + fn a_windows_build_through_proton_checks_nothing() { + let n = needs(r#"{"windows":{"version":"11"}}"#); + assert!(too_old(n.for_build("windows").unwrap(), "windows", "linux", None, Some("2.17")).is_empty()); + } + + #[test] + fn what_the_pc_cant_tell_is_never_counted_against_it() { + let n = needs(r#"{"linux":{"glibc":"2.35"},"windows":{"version":"11"}}"#); + assert!(too_old(n.for_build("linux").unwrap(), "linux", "linux", None, None).is_empty()); + assert!(too_old(n.for_build("windows").unwrap(), "windows", "windows", None, None).is_empty()); + } + + #[test] + fn a_part_left_out_is_no_need() { + let n = needs(r#"{"linux":{"glibc":"2.35"}}"#); + assert!(n.for_build("windows").is_none()); + assert!(n.for_build("macos").is_none()); + } + + #[test] + fn this_pcs_glibc_reads_as_a_version() { + #[cfg(all(target_os = "linux", target_env = "gnu"))] + assert!(glibc_version().is_some_and(|v| at_least(&v, "2.17"))); + #[cfg(not(all(target_os = "linux", target_env = "gnu")))] + assert!(glibc_version().is_none()); + } + + #[test] + fn values_that_arent_versions_or_apis_are_named() { + let n = needs(r#"{"linux":{"glibc":"new","version":"22.04","graphics":{"vulkan":"1.3","dx12":"12"}},"windows":{"version":"11","graphics":{"d3d12":"12_0"}}}"#); + let bad = bad_values(&n); + assert!(bad.iter().any(|b| b.contains("glibc \"new\"")), "{bad:?}"); + assert!(bad.iter().any(|b| b.contains("system.linux.version")), "{bad:?}"); + assert!(bad.iter().any(|b| b.contains("graphics.dx12")), "{bad:?}"); + assert!(!bad.iter().any(|b| b.contains("d3d12") || b.contains("vulkan")), "{bad:?}"); + } +} From 84a193d6ef2faf033d8d3660918313f389c06f0a Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 19:05:20 +0200 Subject: [PATCH 2/3] The game page lists what the game needs from the PC, in red when this 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. --- tests/system-needs.test.cjs | 74 +++++++++++++++++++++++++++++++++++++ ui/app.js | 32 ++++++++++++++++ ui/i18n/ar.json | 8 +++- ui/i18n/de.json | 8 +++- ui/i18n/es-419.json | 8 +++- ui/i18n/es.json | 8 +++- ui/i18n/fr.json | 8 +++- ui/i18n/id.json | 8 +++- ui/i18n/it.json | 8 +++- ui/i18n/ja.json | 8 +++- ui/i18n/ko.json | 8 +++- ui/i18n/nl.json | 8 +++- ui/i18n/pl.json | 8 +++- ui/i18n/pt-BR.json | 8 +++- ui/i18n/pt.json | 8 +++- ui/i18n/ru.json | 8 +++- ui/i18n/th.json | 8 +++- ui/i18n/tr.json | 8 +++- ui/i18n/uk.json | 8 +++- ui/i18n/vi.json | 8 +++- ui/i18n/zh-Hans.json | 8 +++- ui/i18n/zh-Hant.json | 8 +++- 22 files changed, 246 insertions(+), 20 deletions(-) create mode 100644 tests/system-needs.test.cjs diff --git a/tests/system-needs.test.cjs b/tests/system-needs.test.cjs new file mode 100644 index 00000000..7ff4319c --- /dev/null +++ b/tests/system-needs.test.cjs @@ -0,0 +1,74 @@ +// What a game needs from the PC (`system` in its recomplauncher.json): the game page's rows, which +// the desktop and Big Picture share, and what's said when it starts on an older PC. +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const read = (f) => fs.readFileSync(path.join(__dirname, '..', f), 'utf8'); +const app = read('ui/app.js'), tv = read('ui/tv.js'); +const fn = (src, name) => src.match(new RegExp(`^function ${name}\\([^]*?^}`, 'm'))[0]; +const tf = (s, v) => s.replace(/\{(\w+)\}/g, (m, k) => (k in v ? v[k] : m)); +const names = app.match(/^const GRAPHICS_NAMES = [^\n]*$/m)[0]; +const rowsFor = (os) => new Function('S', 't', 'tf', `${names}; ${fn(app, 'systemRows')}; return systemRows;`)({ os }, (s) => s, tf); +const oldText = new Function('tf', `${fn(app, 'systemOldText')}; return systemOldText;`)(tf); + +test('an old glibc shows in red with what this PC has', () => { + const su = { system: { glibc: '2.35' }, system_old: [{ what: 'glibc', want: '2.35', have: '2.31' }] }; + const [row] = rowsFor('linux')(su, { glibc: '2.31' }); + assert.equal(row.k, 'glibc 2.35 or newer'); + assert.equal(row.v, false); + assert.equal(row.d, 'This PC has 2.31. The game may not start.'); +}); + +test('a new enough Windows shows as met', () => { + const su = { system: { version: '10' }, system_old: [] }; + const [row] = rowsFor('windows')(su, { os_version: '10.0.22631' }); + assert.equal(row.k, 'Windows 10 or newer'); + assert.equal(row.v, true); + assert.equal(row.d, 'This PC has 10.0.22631'); +}); + +test('a version the PC cannot tell is neither met nor missed', () => { + const [row] = rowsFor('macos')({ system: { version: '13' }, system_old: [] }, {}); + assert.equal(row.v, null); + assert.equal(row.d, ''); +}); + +test('the graphics API is shown by its name, never checked', () => { + const rows = rowsFor('linux')({ system: { graphics: { vulkan: '1.3' } } }, {}); + assert.equal(rows.length, 1); + assert.equal(rows[0].k, 'Graphics: Vulkan 1.3'); + assert.equal(rows[0].v, null); +}); + +test('a Windows build through Proton on Linux shows no Windows version row', () => { + assert.deepEqual(rowsFor('linux')({ system: { version: '11' } }, {}), []); +}); + +test('no system part, no rows', () => { + assert.deepEqual(rowsFor('linux')({}, {}), []); + assert.deepEqual(rowsFor('linux')(undefined, {}), []); +}); + +test('starting on an older PC says what it needs and what the PC has', () => { + assert.equal(oldText('Hopper', { what: 'glibc', want: '2.35', have: '2.31' }), 'Hopper needs glibc 2.35 or newer, and this PC has 2.31. It may not start.'); + assert.equal(oldText('Hopper', { what: 'macos', want: '14', have: '13.6' }), 'Hopper needs macOS 14 or newer, and this PC has 13.6. It may not start.'); +}); + +test('the rows are in the list both views show, and the start message has one listener', () => { + assert.match(fn(app, 'readyRows'), /rows\.push\(\.\.\.systemRows\(su, pc\)\);/); + assert.match(tv, /const checks = readyRows\(a\);/); + assert.match(app, /T\.event\.listen\('system-old', /); + assert.doesNotMatch(tv, /listen\('system-old'/); +}); + +test('every new text is in every language', () => { + const texts = ['{what} or newer', 'This PC has {version}', 'This PC has {version}. The game may not start.', 'Graphics: {api} {version}', + 'Your graphics card and its driver need to support it', '{name} needs {what} or newer, and this PC has {have}. It may not start.']; + const dir = path.join(__dirname, '../ui/i18n'); + // en-GB and fr-CA keep only what they say differently from English and French. + for (const f of fs.readdirSync(dir).filter((x) => x.endsWith('.json') && x !== 'en-GB.json' && x !== 'fr-CA.json')) { + const d = JSON.parse(fs.readFileSync(path.join(dir, f), 'utf8')); + for (const s of texts) assert.ok(d[s], `${f}: ${s}`); + } +}); diff --git a/ui/app.js b/ui/app.js index d9355aa2..97f5e4b0 100644 --- a/ui/app.js +++ b/ui/app.js @@ -1374,6 +1374,7 @@ function readyRows(a) { if (su && su.needs && su.update && !selfRun) rows.push({ k: t('The game\'s update'), v: su.update_copy ? true : su.update_optional ? true : null, d: su.update_copy ? tf('Set up with {file}', { file: baseName(su.update_copy) }) : su.update, fix: su.update_copy || su.update_optional ? '' : `` }); + rows.push(...systemRows(su, pc)); if (pc.vulkan != null) rows.push({ k: t('Graphics (Vulkan)'), v: pc.vulkan, d: pc.vulkan ? t('Your graphics driver has it') : t('Update your graphics driver to get it'), fix: pc.vulkan ? '' : `` }); if (S.os !== 'macos' && (a.origin === 'x360' || (a.requires && a.requires.avx2))) rows.push({ k: t('Processor (AVX2)'), v: !!pc.avx2, d: pc.avx2 ? t('Your processor has it') : a.origin === 'x360' ? t('Xbox 360 recomps need a processor from 2013 or later') : t('It needs a processor from 2013 or later'), fix: '' }); // A recomp whose own setup builds it on this PC (from a clone of its repo). @@ -1395,6 +1396,31 @@ function readyRows(a) { } return rows; } +// The graphics APIs `system.*.graphics` names, as players know them. +const GRAPHICS_NAMES = { vulkan: 'Vulkan', opengl: 'OpenGL', d3d12: 'Direct3D 12', d3d11: 'Direct3D 11', d3d9: 'Direct3D 9', metal: 'Metal' }; +// What the installed build says it needs from the PC (`system` in its recomplauncher.json). The +// system's version and glibc are checked (in red when this PC is older; the game still starts); +// the graphics API is only shown. Nothing when the PC can't tell its own version. +function systemRows(su, pc) { + const need = su && su.system; + if (!need) return []; + const old = (what) => (su.system_old || []).find((o) => o.what === what); + const rows = []; + const row = (label, have, o) => rows.push({ k: tf('{what} or newer', { what: label }), v: have ? !o : null, + d: o ? tf('This PC has {version}. The game may not start.', { version: o.have }) : have ? tf('This PC has {version}', { version: have }) : '', fix: '' }); + const osName = { windows: 'Windows', macos: 'macOS' }[S.os]; + if (need.version && osName) row(`${osName} ${need.version}`, pc.os_version, old(S.os)); + if (need.glibc && S.os === 'linux') row(`glibc ${need.glibc}`, pc.glibc, old('glibc')); + for (const [api, version] of Object.entries(need.graphics || {})) { + rows.push({ k: tf('Graphics: {api} {version}', { api: GRAPHICS_NAMES[api] || api, version }), v: null, d: t('Your graphics card and its driver need to support it'), fix: '' }); + } + return rows; +} +// Said when the game starts on a PC older than it says it needs (the game page shows it too). +function systemOldText(name, o) { + const what = o.what === 'glibc' ? `glibc ${o.want}` : `${o.what === 'macos' ? 'macOS' : 'Windows'} ${o.want}`; + return tf('{name} needs {what} or newer, and this PC has {have}. It may not start.', { name, what, have: o.have }); +} const parseSize = (sz) => { const m = String(sz || '').match(/([\d.]+)\s*(KB|MB|GB)/i); return m ? parseFloat(m[1]) * { KB: 1024, MB: 1048576, GB: 1073741824 }[m[2].toUpperCase()] : 0; }; function readyCard(a) { @@ -9264,6 +9290,12 @@ function openLinkedGame(id) { T.event.listen('open-game', ({ payload }) => openLinkedGame(payload)); // Something on its way that takes a while (a Flatpak installing before its game starts). T.event.listen('note', ({ payload }) => toast(t(String(payload)), false, null, 9000)); +// The game started on a PC older than it says it needs: once per start, the desktop and Big Picture +// alike. +T.event.listen('system-old', ({ payload }) => { + const p = payload || {}; + for (const o of p.old || []) toast(systemOldText(p.name || '', o), true, null, 12000); +}); T.event.listen('setup-required', ({ payload }) => { if (S.cat && S.cat.apps.length) { invoke('take_setup_asked').catch(() => {}); setupReqModal(String(payload)); } }); // A shortcut asked to play a game whose project added setup options: its page, then Play asks. function newOptsFromShortcut(id) { diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 6b58de2d..653c5403 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "تم الفحص بواسطة فريق RecompStore", "Open the VirusTotal report": "فتح تقرير VirusTotal", "Verified Update": "تحديث موثّق", - "N/A": "غير متاح" + "N/A": "غير متاح", + "{what} or newer": "{what} أو أحدث", + "This PC has {version}": "هذا الحاسوب فيه {version}", + "This PC has {version}. The game may not start.": "هذا الحاسوب فيه {version}. قد لا تعمل اللعبة.", + "Graphics: {api} {version}": "الرسومات: {api} {version}", + "Your graphics card and its driver need to support it": "يجب أن تدعمها بطاقة الرسومات وبرنامج تشغيلها", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "تحتاج {name} إلى {what} أو أحدث، وهذا الحاسوب فيه {have}. قد لا تعمل." } diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 37a5ec6b..17cd6598 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Vom RecompStore-Team geprüft", "Open the VirusTotal report": "VirusTotal-Bericht öffnen", "Verified Update": "Verifiziertes Update", - "N/A": "k. A." + "N/A": "k. A.", + "{what} or newer": "{what} oder neuer", + "This PC has {version}": "Dieser PC hat {version}", + "This PC has {version}. The game may not start.": "Dieser PC hat {version}. Das Spiel startet vielleicht nicht.", + "Graphics: {api} {version}": "Grafik: {api} {version}", + "Your graphics card and its driver need to support it": "Deine Grafikkarte und ihr Treiber müssen es unterstützen", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} braucht {what} oder neuer, und dieser PC hat {have}. Es startet vielleicht nicht." } diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index fb3fbc59..543d1081 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", "Verified Update": "Actualización verificada", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} o posterior", + "This PC has {version}": "Esta PC tiene {version}", + "This PC has {version}. The game may not start.": "Esta PC tiene {version}. Es posible que el juego no inicie.", + "Graphics: {api} {version}": "Gráficos: {api} {version}", + "Your graphics card and its driver need to support it": "Tu tarjeta de video y su controlador tienen que admitirlo", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} necesita {what} o posterior, y esta PC tiene {have}. Es posible que no inicie." } diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 83bfa0b6..363ae512 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", "Verified Update": "Actualización verificada", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} o posterior", + "This PC has {version}": "Este PC tiene {version}", + "This PC has {version}. The game may not start.": "Este PC tiene {version}. Puede que el juego no arranque.", + "Graphics: {api} {version}": "Gráficos: {api} {version}", + "Your graphics card and its driver need to support it": "Tu tarjeta gráfica y su controlador tienen que admitirlo", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} necesita {what} o posterior, y este PC tiene {have}. Puede que no arranque." } diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index fa6fcc4a..e24c0e1d 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Vérifié par l’équipe RecompStore", "Open the VirusTotal report": "Ouvrir le rapport VirusTotal", "Verified Update": "Mise à jour vérifiée", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} ou plus récent", + "This PC has {version}": "Ce PC a {version}", + "This PC has {version}. The game may not start.": "Ce PC a {version}. Le jeu risque de ne pas démarrer.", + "Graphics: {api} {version}": "Graphismes : {api} {version}", + "Your graphics card and its driver need to support it": "Votre carte graphique et son pilote doivent le prendre en charge", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} a besoin de {what} ou plus récent, et ce PC a {have}. Il risque de ne pas démarrer." } diff --git a/ui/i18n/id.json b/ui/i18n/id.json index b5befcd5..19cac4e2 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Diperiksa oleh tim RecompStore", "Open the VirusTotal report": "Buka laporan VirusTotal", "Verified Update": "Pembaruan terverifikasi", - "N/A": "Tidak ada" + "N/A": "Tidak ada", + "{what} or newer": "{what} atau lebih baru", + "This PC has {version}": "PC ini punya {version}", + "This PC has {version}. The game may not start.": "PC ini punya {version}. Gamenya mungkin tidak mau jalan.", + "Graphics: {api} {version}": "Grafis: {api} {version}", + "Your graphics card and its driver need to support it": "Kartu grafis dan drivernya harus mendukungnya", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} butuh {what} atau lebih baru, dan PC ini punya {have}. Gamenya mungkin tidak mau jalan." } diff --git a/ui/i18n/it.json b/ui/i18n/it.json index c4481a13..7f518ec5 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Controllato dal team di RecompStore", "Open the VirusTotal report": "Apri il report di VirusTotal", "Verified Update": "Aggiornamento verificato", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} o successivo", + "This PC has {version}": "Questo PC ha {version}", + "This PC has {version}. The game may not start.": "Questo PC ha {version}. Il gioco potrebbe non avviarsi.", + "Graphics: {api} {version}": "Grafica: {api} {version}", + "Your graphics card and its driver need to support it": "La scheda grafica e il suo driver devono supportarlo", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} richiede {what} o successivo, e questo PC ha {have}. Potrebbe non avviarsi." } diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index b3322591..03f6d760 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "RecompStore チームが確認済み", "Open the VirusTotal report": "VirusTotal のレポートを開く", "Verified Update": "確認済みのアップデート", - "N/A": "該当なし" + "N/A": "該当なし", + "{what} or newer": "{what} 以降", + "This PC has {version}": "このPCは {version}", + "This PC has {version}. The game may not start.": "このPCは {version} です。ゲームが起動しないかもしれません。", + "Graphics: {api} {version}": "グラフィックス: {api} {version}", + "Your graphics card and its driver need to support it": "グラフィックカードとそのドライバーが対応している必要があります", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} には {what} 以降が必要ですが、このPCは {have} です。起動しないかもしれません。" } diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 1e2b9f9d..d170ac78 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "RecompStore 팀이 확인함", "Open the VirusTotal report": "VirusTotal 보고서 열기", "Verified Update": "확인된 업데이트", - "N/A": "해당 없음" + "N/A": "해당 없음", + "{what} or newer": "{what} 이상", + "This PC has {version}": "이 PC는 {version}", + "This PC has {version}. The game may not start.": "이 PC는 {version}입니다. 게임이 실행되지 않을 수 있습니다.", + "Graphics: {api} {version}": "그래픽: {api} {version}", + "Your graphics card and its driver need to support it": "그래픽 카드와 드라이버가 지원해야 합니다", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name}에는 {what} 이상이 필요하지만 이 PC는 {have}입니다. 실행되지 않을 수 있습니다." } diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index dc896413..f5aaa5c8 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Gecontroleerd door het RecompStore-team", "Open the VirusTotal report": "VirusTotal-rapport openen", "Verified Update": "Geverifieerde update", - "N/A": "n.v.t." + "N/A": "n.v.t.", + "{what} or newer": "{what} of nieuwer", + "This PC has {version}": "Deze pc heeft {version}", + "This PC has {version}. The game may not start.": "Deze pc heeft {version}. Het spel start misschien niet.", + "Graphics: {api} {version}": "Graphics: {api} {version}", + "Your graphics card and its driver need to support it": "Je videokaart en de driver ervan moeten het ondersteunen", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} heeft {what} of nieuwer nodig, en deze pc heeft {have}. Het start misschien niet." } diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 2cc910eb..a7037ccd 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Sprawdzone przez zespół RecompStore", "Open the VirusTotal report": "Otwórz raport VirusTotal", "Verified Update": "Zweryfikowana aktualizacja", - "N/A": "nd." + "N/A": "nd.", + "{what} or newer": "{what} lub nowszy", + "This PC has {version}": "Ten komputer ma {version}", + "This PC has {version}. The game may not start.": "Ten komputer ma {version}. Gra może się nie uruchomić.", + "Graphics: {api} {version}": "Grafika: {api} {version}", + "Your graphics card and its driver need to support it": "Karta graficzna i jej sterownik muszą to obsługiwać", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} wymaga {what} lub nowszego, a ten komputer ma {have}. Gra może się nie uruchomić." } diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index b597ab99..0e0cec5b 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Verificado pela equipe da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", "Verified Update": "Atualização verificada", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} ou mais recente", + "This PC has {version}": "Este PC tem {version}", + "This PC has {version}. The game may not start.": "Este PC tem {version}. O jogo pode não abrir.", + "Graphics: {api} {version}": "Gráficos: {api} {version}", + "Your graphics card and its driver need to support it": "Sua placa de vídeo e o driver dela precisam ter suporte", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} precisa de {what} ou mais recente, e este PC tem {have}. Ele pode não abrir." } diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index d5721271..5a3c4eb6 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Verificado pela equipa da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", "Verified Update": "Atualização verificada", - "N/A": "N/D" + "N/A": "N/D", + "{what} or newer": "{what} ou mais recente", + "This PC has {version}": "Este PC tem {version}", + "This PC has {version}. The game may not start.": "Este PC tem {version}. O jogo pode não arrancar.", + "Graphics: {api} {version}": "Gráficos: {api} {version}", + "Your graphics card and its driver need to support it": "A tua placa gráfica e o controlador têm de o suportar", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} precisa de {what} ou mais recente, e este PC tem {have}. Pode não arrancar." } diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 5b831c01..dc165e3d 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Проверено командой RecompStore", "Open the VirusTotal report": "Открыть отчёт VirusTotal", "Verified Update": "Проверенное обновление", - "N/A": "Н/Д" + "N/A": "Н/Д", + "{what} or newer": "{what} или новее", + "This PC has {version}": "На этом ПК {version}", + "This PC has {version}. The game may not start.": "На этом ПК {version}. Игра может не запуститься.", + "Graphics: {api} {version}": "Графика: {api} {version}", + "Your graphics card and its driver need to support it": "Видеокарта и её драйвер должны это поддерживать", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} нужна {what} или новее, а на этом ПК {have}. Игра может не запуститься." } diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 65c1e456..ee2c0090 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "ตรวจสอบโดยทีม RecompStore", "Open the VirusTotal report": "เปิดรายงาน VirusTotal", "Verified Update": "อัปเดตที่ยืนยันแล้ว", - "N/A": "ไม่มี" + "N/A": "ไม่มี", + "{what} or newer": "{what} ขึ้นไป", + "This PC has {version}": "พีซีเครื่องนี้มี {version}", + "This PC has {version}. The game may not start.": "พีซีเครื่องนี้มี {version} เกมอาจเปิดไม่ขึ้น", + "Graphics: {api} {version}": "กราฟิก: {api} {version}", + "Your graphics card and its driver need to support it": "การ์ดจอและไดรเวอร์ต้องรองรับสิ่งนี้", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} ต้องใช้ {what} ขึ้นไป แต่พีซีเครื่องนี้มี {have} เกมอาจเปิดไม่ขึ้น" } diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index cddd8feb..a83d52c1 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "RecompStore ekibi tarafından kontrol edildi", "Open the VirusTotal report": "VirusTotal raporunu aç", "Verified Update": "Doğrulanmış güncelleme", - "N/A": "Yok" + "N/A": "Yok", + "{what} or newer": "{what} veya daha yenisi", + "This PC has {version}": "Bu bilgisayarda {version} var", + "This PC has {version}. The game may not start.": "Bu bilgisayarda {version} var. Oyun açılmayabilir.", + "Graphics: {api} {version}": "Grafik: {api} {version}", + "Your graphics card and its driver need to support it": "Ekran kartınızın ve sürücüsünün bunu desteklemesi gerekir", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} için {what} veya daha yenisi gerekiyor, bu bilgisayarda {have} var. Açılmayabilir." } diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index cd3c4a37..022f4b65 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Перевірено командою RecompStore", "Open the VirusTotal report": "Відкрити звіт VirusTotal", "Verified Update": "Перевірене оновлення", - "N/A": "Н/Д" + "N/A": "Н/Д", + "{what} or newer": "{what} або новіша", + "This PC has {version}": "На цьому ПК {version}", + "This PC has {version}. The game may not start.": "На цьому ПК {version}. Гра може не запуститися.", + "Graphics: {api} {version}": "Графіка: {api} {version}", + "Your graphics card and its driver need to support it": "Твоя відеокарта та її драйвер мають це підтримувати", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} потрібна {what} або новіша, а на цьому ПК {have}. Гра може не запуститися." } diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 533dd892..8b38eb15 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "Đã được đội ngũ RecompStore kiểm tra", "Open the VirusTotal report": "Mở báo cáo VirusTotal", "Verified Update": "Bản cập nhật đã xác minh", - "N/A": "Không có" + "N/A": "Không có", + "{what} or newer": "{what} trở lên", + "This PC has {version}": "Máy này có {version}", + "This PC has {version}. The game may not start.": "Máy này có {version}. Trò chơi có thể không chạy.", + "Graphics: {api} {version}": "Đồ họa: {api} {version}", + "Your graphics card and its driver need to support it": "Card đồ họa và trình điều khiển của nó cần hỗ trợ điều này", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} cần {what} trở lên, và máy này có {have}. Trò chơi có thể không chạy." } diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index a2a567bd..2fdb1039 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "已由 RecompStore 团队检查", "Open the VirusTotal report": "打开 VirusTotal 报告", "Verified Update": "已验证的更新", - "N/A": "不适用" + "N/A": "不适用", + "{what} or newer": "{what} 或更高版本", + "This PC has {version}": "此电脑为 {version}", + "This PC has {version}. The game may not start.": "此电脑为 {version},游戏可能无法启动。", + "Graphics: {api} {version}": "图形:{api} {version}", + "Your graphics card and its driver need to support it": "需要显卡及其驱动支持", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} 需要 {what} 或更高版本,而此电脑为 {have},可能无法启动。" } diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index deae8cfd..648dfa4e 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3362,5 +3362,11 @@ "Checked by the RecompStore team": "已由 RecompStore 團隊檢查", "Open the VirusTotal report": "開啟 VirusTotal 報告", "Verified Update": "已驗證的更新", - "N/A": "不適用" + "N/A": "不適用", + "{what} or newer": "{what} 或更新版本", + "This PC has {version}": "這台電腦是 {version}", + "This PC has {version}. The game may not start.": "這台電腦是 {version},遊戲可能無法啟動。", + "Graphics: {api} {version}": "圖形:{api} {version}", + "Your graphics card and its driver need to support it": "需要顯示卡及其驅動程式支援", + "{name} needs {what} or newer, and this PC has {have}. It may not start.": "{name} 需要 {what} 或更新版本,而這台電腦是 {have},可能無法啟動。" } From aa7ff9dde69b9ead96222f1ae7ae8a33cbe7ac90 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Fri, 20 Nov 2026 04:12:10 +0200 Subject: [PATCH 3/3] Verified Update stays gone after the merge The merge kept both sides at the end of each translation file, and F's side still had Verified Update, which #291 removed. The launcher-i18n check now matches main's apart from F's own texts. --- ui/i18n/ar.json | 1 - ui/i18n/de.json | 1 - ui/i18n/es-419.json | 1 - ui/i18n/es.json | 1 - ui/i18n/fr.json | 1 - ui/i18n/id.json | 1 - ui/i18n/it.json | 1 - ui/i18n/ja.json | 1 - ui/i18n/ko.json | 1 - ui/i18n/nl.json | 1 - ui/i18n/pl.json | 1 - ui/i18n/pt-BR.json | 1 - ui/i18n/pt.json | 1 - ui/i18n/ru.json | 1 - ui/i18n/th.json | 1 - ui/i18n/tr.json | 1 - ui/i18n/uk.json | 1 - ui/i18n/vi.json | 1 - ui/i18n/zh-Hans.json | 1 - ui/i18n/zh-Hant.json | 1 - 20 files changed, 20 deletions(-) diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 763681b9..b1accdfb 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3353,7 +3353,6 @@ "Game A to Z": "اللعبة من أ إلى ي", "Checked by the RecompStore team": "تم الفحص بواسطة فريق RecompStore", "Open the VirusTotal report": "فتح تقرير VirusTotal", - "Verified Update": "تحديث موثّق", "N/A": "غير متاح", "{what} or newer": "{what} أو أحدث", "This PC has {version}": "هذا الحاسوب فيه {version}", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index a1ece198..20e31202 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Spiel A bis Z", "Checked by the RecompStore team": "Vom RecompStore-Team geprüft", "Open the VirusTotal report": "VirusTotal-Bericht öffnen", - "Verified Update": "Verifiziertes Update", "N/A": "k. A.", "{what} or newer": "{what} oder neuer", "This PC has {version}": "Dieser PC hat {version}", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 38f2cdc5..09fbeda3 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Juego de la A a la Z", "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", - "Verified Update": "Actualización verificada", "N/A": "N/D", "{what} or newer": "{what} o posterior", "This PC has {version}": "Esta PC tiene {version}", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 165e5303..72beb357 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Juego de la A a la Z", "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", - "Verified Update": "Actualización verificada", "N/A": "N/D", "{what} or newer": "{what} o posterior", "This PC has {version}": "Este PC tiene {version}", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 8765872c..641e0f75 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Jeu de A à Z", "Checked by the RecompStore team": "Vérifié par l’équipe RecompStore", "Open the VirusTotal report": "Ouvrir le rapport VirusTotal", - "Verified Update": "Mise à jour vérifiée", "N/A": "N/D", "{what} or newer": "{what} ou plus récent", "This PC has {version}": "Ce PC a {version}", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 836e6112..bb11904c 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Game A sampai Z", "Checked by the RecompStore team": "Diperiksa oleh tim RecompStore", "Open the VirusTotal report": "Buka laporan VirusTotal", - "Verified Update": "Pembaruan terverifikasi", "N/A": "Tidak ada", "{what} or newer": "{what} atau lebih baru", "This PC has {version}": "PC ini punya {version}", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index cffb6e8e..e06c2a3d 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Gioco dalla A alla Z", "Checked by the RecompStore team": "Controllato dal team di RecompStore", "Open the VirusTotal report": "Apri il report di VirusTotal", - "Verified Update": "Aggiornamento verificato", "N/A": "N/D", "{what} or newer": "{what} o successivo", "This PC has {version}": "Questo PC ha {version}", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 94c90aa4..f7634632 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3353,7 +3353,6 @@ "Game A to Z": "ゲーム名順", "Checked by the RecompStore team": "RecompStore チームが確認済み", "Open the VirusTotal report": "VirusTotal のレポートを開く", - "Verified Update": "確認済みのアップデート", "N/A": "該当なし", "{what} or newer": "{what} 以降", "This PC has {version}": "このPCは {version}", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index b0dbaeeb..69e815e8 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3353,7 +3353,6 @@ "Game A to Z": "게임 이름순", "Checked by the RecompStore team": "RecompStore 팀이 확인함", "Open the VirusTotal report": "VirusTotal 보고서 열기", - "Verified Update": "확인된 업데이트", "N/A": "해당 없음", "{what} or newer": "{what} 이상", "This PC has {version}": "이 PC는 {version}", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index d343d98e..ac4c0c9f 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Spel A tot Z", "Checked by the RecompStore team": "Gecontroleerd door het RecompStore-team", "Open the VirusTotal report": "VirusTotal-rapport openen", - "Verified Update": "Geverifieerde update", "N/A": "n.v.t.", "{what} or newer": "{what} of nieuwer", "This PC has {version}": "Deze pc heeft {version}", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index e4cd213c..0e9c614f 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Gra od A do Z", "Checked by the RecompStore team": "Sprawdzone przez zespół RecompStore", "Open the VirusTotal report": "Otwórz raport VirusTotal", - "Verified Update": "Zweryfikowana aktualizacja", "N/A": "nd.", "{what} or newer": "{what} lub nowszy", "This PC has {version}": "Ten komputer ma {version}", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index e2ffdf1b..add5b7ce 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Jogo de A a Z", "Checked by the RecompStore team": "Verificado pela equipe da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", - "Verified Update": "Atualização verificada", "N/A": "N/D", "{what} or newer": "{what} ou mais recente", "This PC has {version}": "Este PC tem {version}", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index d570da99..acdb35f0 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Jogo de A a Z", "Checked by the RecompStore team": "Verificado pela equipa da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", - "Verified Update": "Atualização verificada", "N/A": "N/D", "{what} or newer": "{what} ou mais recente", "This PC has {version}": "Este PC tem {version}", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 8d68ceff..a4a4e441 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Игра от А до Я", "Checked by the RecompStore team": "Проверено командой RecompStore", "Open the VirusTotal report": "Открыть отчёт VirusTotal", - "Verified Update": "Проверенное обновление", "N/A": "Н/Д", "{what} or newer": "{what} или новее", "This PC has {version}": "На этом ПК {version}", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 6c5def17..99ddc54e 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3353,7 +3353,6 @@ "Game A to Z": "เกม ก ถึง ฮ", "Checked by the RecompStore team": "ตรวจสอบโดยทีม RecompStore", "Open the VirusTotal report": "เปิดรายงาน VirusTotal", - "Verified Update": "อัปเดตที่ยืนยันแล้ว", "N/A": "ไม่มี", "{what} or newer": "{what} ขึ้นไป", "This PC has {version}": "พีซีเครื่องนี้มี {version}", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 1faba758..f5086b01 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Oyun A'dan Z'ye", "Checked by the RecompStore team": "RecompStore ekibi tarafından kontrol edildi", "Open the VirusTotal report": "VirusTotal raporunu aç", - "Verified Update": "Doğrulanmış güncelleme", "N/A": "Yok", "{what} or newer": "{what} veya daha yenisi", "This PC has {version}": "Bu bilgisayarda {version} var", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index a5d78de8..29ab1de5 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Гра від А до Я", "Checked by the RecompStore team": "Перевірено командою RecompStore", "Open the VirusTotal report": "Відкрити звіт VirusTotal", - "Verified Update": "Перевірене оновлення", "N/A": "Н/Д", "{what} or newer": "{what} або новіша", "This PC has {version}": "На цьому ПК {version}", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 2204f33c..36ef1068 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3353,7 +3353,6 @@ "Game A to Z": "Trò chơi A đến Z", "Checked by the RecompStore team": "Đã được đội ngũ RecompStore kiểm tra", "Open the VirusTotal report": "Mở báo cáo VirusTotal", - "Verified Update": "Bản cập nhật đã xác minh", "N/A": "Không có", "{what} or newer": "{what} trở lên", "This PC has {version}": "Máy này có {version}", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index a2f65467..0c9a1b7c 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3353,7 +3353,6 @@ "Game A to Z": "按游戏名称排序", "Checked by the RecompStore team": "已由 RecompStore 团队检查", "Open the VirusTotal report": "打开 VirusTotal 报告", - "Verified Update": "已验证的更新", "N/A": "不适用", "{what} or newer": "{what} 或更高版本", "This PC has {version}": "此电脑为 {version}", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index b98949c7..1c0c88cb 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3353,7 +3353,6 @@ "Game A to Z": "依遊戲名稱排序", "Checked by the RecompStore team": "已由 RecompStore 團隊檢查", "Open the VirusTotal report": "開啟 VirusTotal 報告", - "Verified Update": "已驗證的更新", "N/A": "不適用", "{what} or newer": "{what} 或更新版本", "This PC has {version}": "這台電腦是 {version}",