mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Fix windows build of heroic
This commit is contained in:
@@ -26,6 +26,17 @@ impl From<HeroicGame> for ShortcutOwned {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
let mut install_path = game.install_path.to_string();
|
||||
#[cfg(target_family = "unix")]
|
||||
{
|
||||
if !install_path.starts_with("\"") && !install_path.ends_with("\"") {
|
||||
install_path = format!("\"{}\"", install_path);
|
||||
}
|
||||
}
|
||||
#[cfg(target_os = "windows")]
|
||||
let install_path = game.install_path.to_string();
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
let target = target_path.to_string_lossy().to_string();
|
||||
|
||||
@@ -33,7 +44,7 @@ impl From<HeroicGame> for ShortcutOwned {
|
||||
"0",
|
||||
game.title.as_str(),
|
||||
&target,
|
||||
"",
|
||||
&install_path,
|
||||
"",
|
||||
"",
|
||||
&game.launch_parameters.as_str(),
|
||||
|
||||
Reference in New Issue
Block a user