mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Amazon Games for Windows (#91)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user