-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add method to query configured compatibility tool * Update things to better match new structure --------- Co-authored-by: Jan200101 <[email protected]>
- Loading branch information
1 parent
64cd466
commit 4cfc60b
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
use serde::Deserialize; | ||
use std::collections::HashMap; | ||
|
||
#[derive(Deserialize, Debug)] | ||
#[serde(rename_all = "PascalCase")] | ||
pub(crate) struct Store { | ||
pub(crate) software: Software, | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
#[serde(rename_all = "PascalCase")] | ||
pub(crate) struct Software { | ||
pub(crate) valve: Valve, | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
#[serde(rename_all = "PascalCase")] | ||
pub(crate) struct Valve { | ||
pub(crate) steam: Steam, | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
pub(crate) struct Steam { | ||
#[serde(rename = "CompatToolMapping")] | ||
pub(crate) mapping: HashMap<u32, CompatTool>, | ||
} | ||
|
||
/// An instance of a compatibility tool. | ||
#[derive(Deserialize, Debug, Clone)] | ||
pub struct CompatTool { | ||
/// The name of the tool. | ||
/// | ||
/// Example: `proton_411` | ||
pub name: Option<String>, | ||
|
||
// Unknown option, may be used in the future | ||
pub config: Option<String>, | ||
|
||
// Unknown option, may be used in the future | ||
pub priority: Option<u64>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters