mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add support for lutris
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user