Amazon Games for Windows (#91)

This commit is contained in:
Philip Kristoffersen
2022-04-19 21:24:17 +02:00
committed by GitHub
parent 521eb54cbb
commit 0f5f3bad2c
12 changed files with 173 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut};
#[derive(Debug, Clone)]
pub struct AmazonGame{
pub title : String,
pub id : String
}
impl From<AmazonGame> for ShortcutOwned {
fn from(game: AmazonGame) -> Self {
let launch = format!("amazon-games://play/{}", game.id);
Shortcut::new(
"0",
game.title.as_str(),
launch.as_str(),
"",
"",
"",
"",
)
.to_owned()
}
}