From 0ab1f15da085976522632d75f175eda0a08888a4 Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Mon, 30 May 2022 13:52:39 +0200 Subject: [PATCH] Fix heroic games not being found --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/heroic/heroic_game.rs | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 614552c..6060fff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,7 +148,7 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] name = "boilr" -version = "1.3.13" +version = "1.3.14" dependencies = [ "base64", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 2c59f1c..555d7ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "boilr" -version = "1.3.13" +version = "1.3.14" [dependencies] base64 = "^0.13.0" diff --git a/src/heroic/heroic_game.rs b/src/heroic/heroic_game.rs index 5a2357b..0e27a6a 100644 --- a/src/heroic/heroic_game.rs +++ b/src/heroic/heroic_game.rs @@ -20,9 +20,13 @@ pub struct HeroicGame { impl HeroicGame { pub fn is_installed(&self) -> bool { - Path::new(&self.install_path) - .join(&self.executable) - .exists() + if self.launch_through_heroic { + true + } else { + Path::new(&self.install_path) + .join(&self.executable) + .exists() + } } }