mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
UI image selection (#97)
This commit is contained in:
@@ -1,25 +1,14 @@
|
||||
use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct AmazonGame{
|
||||
pub title : String,
|
||||
pub id : String
|
||||
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()
|
||||
Shortcut::new("0", game.title.as_str(), launch.as_str(), "", "", "", "").to_owned()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user