Update limit enum names used in ron
This commit is contained in:
parent
e0ddee9e07
commit
04a94c902f
4 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue