mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Merge branch 'main' of https://github.com/PhilipK/BoilR
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")]
|
#[cfg(target_os = "windows")]
|
||||||
let target = target_path.to_string_lossy().to_string();
|
let target = target_path.to_string_lossy().to_string();
|
||||||
|
|
||||||
@@ -33,7 +44,7 @@ impl From<HeroicGame> for ShortcutOwned {
|
|||||||
"0",
|
"0",
|
||||||
game.title.as_str(),
|
game.title.as_str(),
|
||||||
&target,
|
&target,
|
||||||
"",
|
&install_path,
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
&game.launch_parameters.as_str(),
|
&game.launch_parameters.as_str(),
|
||||||
|
|||||||
Reference in New Issue
Block a user