Update limit enum names used in ron

This commit is contained in:
NGnius (Graham) 2023-11-26 09:50:13 -05:00
parent e0ddee9e07
commit 04a94c902f
4 changed files with 9 additions and 3 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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),