mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Fix heroic games not being found
This commit is contained in:
Generated
+1
-1
@@ -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
@@ -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"
|
||||||
|
|||||||
@@ -20,11 +20,15 @@ pub struct HeroicGame {
|
|||||||
|
|
||||||
impl HeroicGame {
|
impl HeroicGame {
|
||||||
pub fn is_installed(&self) -> bool {
|
pub fn is_installed(&self) -> bool {
|
||||||
|
if self.launch_through_heroic {
|
||||||
|
true
|
||||||
|
} else {
|
||||||
Path::new(&self.install_path)
|
Path::new(&self.install_path)
|
||||||
.join(&self.executable)
|
.join(&self.executable)
|
||||||
.exists()
|
.exists()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<HeroicGame> for ShortcutOwned {
|
impl From<HeroicGame> for ShortcutOwned {
|
||||||
fn from(game: HeroicGame) -> Self {
|
fn from(game: HeroicGame) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user