hardware: Detect ZOTAC Gaming Zone

This commit is contained in:
Vicki Pfau 2025-03-11 15:42:25 -07:00
parent 3e1ab5a2c0
commit b690f9b723

View file

@ -40,6 +40,7 @@ pub(crate) enum DeviceType {
LegionGoS, LegionGoS,
RogAlly, RogAlly,
RogAllyX, RogAllyX,
ZotacGamingZone,
} }
#[derive(Display, EnumString, PartialEq, Debug, Copy, Clone, TryFromPrimitive)] #[derive(Display, EnumString, PartialEq, Debug, Copy, Clone, TryFromPrimitive)]
@ -88,6 +89,7 @@ pub(crate) async fn device_variant() -> Result<(DeviceType, String)> {
(DeviceType::LegionGoS, product_name.to_string()) (DeviceType::LegionGoS, product_name.to_string())
} }
("Valve", _, "Jupiter" | "Galileo") => (DeviceType::SteamDeck, board_name.to_string()), ("Valve", _, "Jupiter" | "Galileo") => (DeviceType::SteamDeck, board_name.to_string()),
("ZOTAC", _, "G0A1W") => (DeviceType::ZotacGamingZone, board_name.to_string()),
_ => (DeviceType::Unknown, String::from("unknown")), _ => (DeviceType::Unknown, String::from("unknown")),
}) })
} }