mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Only add installed heroic games
This commit is contained in:
@@ -13,6 +13,12 @@ pub struct HeroicGame {
|
||||
pub launch_parameters: String,
|
||||
}
|
||||
|
||||
impl HeroicGame{
|
||||
fn is_installed(&self) -> bool{
|
||||
Path::new(&self.install_path).join(&self.executable).exists()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<HeroicGame> for ShortcutOwned {
|
||||
fn from(game: HeroicGame) -> Self {
|
||||
let target_path = Path::new(&game.install_path).join(game.executable);
|
||||
|
||||
Reference in New Issue
Block a user