From 04a94c902f176e60d1c7bdde390ab8033c55863d Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Sun, 26 Nov 2023 09:50:13 -0500 Subject: [PATCH] Update limit enum names used in ron --- backend/limits_core/src/json_v2/battery_limit.rs | 2 ++ backend/limits_core/src/json_v2/cpu_limit.rs | 2 ++ backend/limits_core/src/json_v2/gpu_limit.rs | 2 ++ limits_override.ron | 6 +++--- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/backend/limits_core/src/json_v2/battery_limit.rs b/backend/limits_core/src/json_v2/battery_limit.rs index f064fd9..4986283 100644 --- a/backend/limits_core/src/json_v2/battery_limit.rs +++ b/backend/limits_core/src/json_v2/battery_limit.rs @@ -4,7 +4,9 @@ use super::RangeLimit; #[derive(Serialize, Deserialize, Debug, Clone)] //#[serde(tag = "target")] pub enum BatteryLimitType { + #[serde(rename = "GabeBoy", alias = "SteamDeck")] SteamDeck, + #[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")] SteamDeckAdvance, Generic, Unknown, diff --git a/backend/limits_core/src/json_v2/cpu_limit.rs b/backend/limits_core/src/json_v2/cpu_limit.rs index 84f7ea0..b2621d7 100644 --- a/backend/limits_core/src/json_v2/cpu_limit.rs +++ b/backend/limits_core/src/json_v2/cpu_limit.rs @@ -5,7 +5,9 @@ use super::RangeLimit; #[derive(Serialize, Deserialize, Debug, Clone)] //#[serde(tag = "target")] pub enum CpuLimitType { + #[serde(rename = "GabeBoy", alias = "SteamDeck")] SteamDeck, + #[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")] SteamDeckAdvance, Generic, GenericAMD, diff --git a/backend/limits_core/src/json_v2/gpu_limit.rs b/backend/limits_core/src/json_v2/gpu_limit.rs index 39e09c1..32e47f6 100644 --- a/backend/limits_core/src/json_v2/gpu_limit.rs +++ b/backend/limits_core/src/json_v2/gpu_limit.rs @@ -4,7 +4,9 @@ use super::RangeLimit; #[derive(Serialize, Deserialize, Debug, Clone)] //#[serde(tag = "target")] pub enum GpuLimitType { + #[serde(rename = "GabeBoy", alias = "SteamDeck")] SteamDeck, + #[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")] SteamDeckAdvance, Generic, GenericAMD, diff --git a/limits_override.ron b/limits_override.ron index f5cb160..2d74572 100644 --- a/limits_override.ron +++ b/limits_override.ron @@ -1,6 +1,6 @@ Limits( cpu: Limit( - provider: SteamDeck, + provider: GabeBoy, limits: GenericCpusLimit( cpus: [GenericCpuLimit( clock_min: Some(RangeLimit( @@ -95,7 +95,7 @@ Limits( ), ), gpu: Limit( - provider: SteamDeck, + provider: GabeBoy, limits: GenericGpuLimit( fast_ppt: Some(RangeLimit( min: Some(1000000), @@ -125,7 +125,7 @@ Limits( ), ), battery: Limit( - provider: SteamDeck, + provider: GabeBoy, limits: GenericBatteryLimit( charge_rate: Some(RangeLimit( min: Some(250),