Fix heroic games not being found

This commit is contained in:
Philip Kristoffersen
2022-05-30 13:52:39 +02:00
parent c2bbeefbd2
commit 0ab1f15da0
3 changed files with 9 additions and 5 deletions
Generated
+1 -1
View File
@@ -148,7 +148,7 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]] [[package]]
name = "boilr" name = "boilr"
version = "1.3.13" version = "1.3.14"
dependencies = [ dependencies = [
"base64", "base64",
"chrono", "chrono",
+1 -1
View File
@@ -1,7 +1,7 @@
[package] [package]
edition = "2021" edition = "2021"
name = "boilr" name = "boilr"
version = "1.3.13" version = "1.3.14"
[dependencies] [dependencies]
base64 = "^0.13.0" base64 = "^0.13.0"
+7 -3
View File
@@ -20,9 +20,13 @@ pub struct HeroicGame {
impl HeroicGame { impl HeroicGame {
pub fn is_installed(&self) -> bool { pub fn is_installed(&self) -> bool {
Path::new(&self.install_path) if self.launch_through_heroic {
.join(&self.executable) true
.exists() } else {
Path::new(&self.install_path)
.join(&self.executable)
.exists()
}
} }
} }