Skip to content

Commit

Permalink
Fix heroic games not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipK committed May 30, 2022
1 parent c2bbeef commit 0ab1f15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "boilr"
version = "1.3.13"
version = "1.3.14"

[dependencies]
base64 = "^0.13.0"
Expand Down
10 changes: 7 additions & 3 deletions src/heroic/heroic_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

Expand Down

0 comments on commit 0ab1f15

Please sign in to comment.