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
+7 -3
View File
@@ -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()
}
}
}