From d2515bc8c5c2b71149aa836513449bc4e2117cd1 Mon Sep 17 00:00:00 2001 From: gefydev <71671650+gefydev@users.noreply.github.com> Date: Wed, 25 Nov 2026 09:45:54 -0300 Subject: [PATCH] Config: device_type in xcl.toml names the Series S in every spelling is_series_s compared device_type with "lockhart" and "series s" only, while XCL_DEVICE_TYPE goes through parse_device_type, which also takes "series_s", "xss", "s" and surrounding blanks. So `device_type = "xss"` in xcl.toml was the Series X: the manifest's anaconda memory mode, the 13 824 MiB budget and the "Xbox Series X" console form, with no hint why. is_series_s now asks parse_device_type, the same reading as the override. --- crates/xcl/src/config.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/xcl/src/config.rs b/crates/xcl/src/config.rs index 3fbeff2a4c..22a7b89748 100644 --- a/crates/xcl/src/config.rs +++ b/crates/xcl/src/config.rs @@ -233,8 +233,9 @@ impl Config { } } + /// `device_type` names the Series S in any spelling `XCL_DEVICE_TYPE` takes ([`parse_device_type`]). pub fn is_series_s(&self) -> bool { - self.device_type.eq_ignore_ascii_case("lockhart") || self.device_type.eq_ignore_ascii_case("series s") + parse_device_type(&self.device_type) == Some("lockhart") } /// Normalize and apply a `XCL_DEVICE_TYPE` override ("anaconda"/"series x"/"xsx"/"x" or @@ -360,11 +361,17 @@ mod tests { lockhart_memory: Some("Advanced".into()), ..Default::default() }; - for device in ["lockhart", "Series S"] { + // the spellings XCL_DEVICE_TYPE takes, in xcl.toml too + for device in ["lockhart", "Series S", "series_s", "xss", "S", " lockhart "] { let mut c = Config { device_type: device.into(), ..Config::default() }; c.resolve(Some(&manifest)); assert_eq!((c.title_memory.as_str(), c.title_memory_mb), ("advanced", 8_192), "{device}"); } + for device in ["anaconda", "Series X", "xsx", "x"] { + let mut c = Config { device_type: device.into(), ..Config::default() }; + c.resolve(Some(&manifest)); + assert_eq!((c.title_memory.as_str(), c.title_memory_mb), ("standard", 13_824), "{device}"); + } let mut c = Config::default(); c.resolve(Some(&manifest)); assert_eq!((c.title_memory.as_str(), c.title_memory_mb), ("standard", 13_824));