mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
26 lines
552 B
Rust
26 lines
552 B
Rust
use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut};
|
|
|
|
#[derive(Clone)]
|
|
pub struct LutrisGame {
|
|
pub index: String,
|
|
pub name: String,
|
|
pub id: String,
|
|
pub platform: String,
|
|
}
|
|
|
|
impl From<LutrisGame> for ShortcutOwned {
|
|
fn from(game: LutrisGame) -> Self {
|
|
let options = format!("lutris:rungame/{}", game.id);
|
|
Shortcut::new(
|
|
"0",
|
|
game.name.as_str(),
|
|
"lutris",
|
|
"",
|
|
"",
|
|
"",
|
|
options.as_str(),
|
|
)
|
|
.to_owned()
|
|
}
|
|
}
|