mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Make orders strings instead of usize (#63)
This commit is contained in:
@@ -39,7 +39,7 @@ fn exe_shortcut(manifest: ManifestItem) -> ShortcutOwned {
|
||||
let exe = exe.trim_matches('\"');
|
||||
let start_dir = start_dir.trim_matches('\"');
|
||||
Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
manifest.display_name.as_str(),
|
||||
exe,
|
||||
start_dir,
|
||||
@@ -54,7 +54,7 @@ fn launcher_shortcut(manifest: ManifestItem) -> ShortcutOwned {
|
||||
let icon = manifest.exe();
|
||||
let url = manifest.get_launch_url();
|
||||
Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
manifest.display_name.as_str(),
|
||||
url.as_str(),
|
||||
"",
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ impl From<GogShortcut> for ShortcutOwned {
|
||||
exe.to_str().unwrap_or("").to_string()
|
||||
};
|
||||
let shortcut = Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
gogs.name.as_str(),
|
||||
exe.to_str().unwrap(),
|
||||
gogs.working_dir.as_str(),
|
||||
|
||||
@@ -31,7 +31,7 @@ impl From<HeroicGame> for ShortcutOwned {
|
||||
let launch_options = format!("launch {}",game.app_name);
|
||||
|
||||
let shortcut = Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
game.title.as_str(),
|
||||
launch.as_str(),
|
||||
"",
|
||||
|
||||
@@ -16,7 +16,7 @@ impl From<ItchGame> for ShortcutOwned {
|
||||
let exe = Path::new(&game.install_path).join(&game.executable);
|
||||
let exe = exe.to_str().unwrap().to_string();
|
||||
let shortcut = Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
game.title.as_str(),
|
||||
exe.as_str(),
|
||||
&game.install_path,
|
||||
|
||||
@@ -20,7 +20,7 @@ impl From<LegendaryGame> for ShortcutOwned {
|
||||
start_dir = format!("\"{}\"", game.install_path);
|
||||
}
|
||||
let shortcut = Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
game.title.as_str(),
|
||||
launch.as_str(),
|
||||
start_dir.as_str(),
|
||||
|
||||
@@ -12,7 +12,7 @@ impl From<LutrisGame> for ShortcutOwned {
|
||||
fn from(game: LutrisGame) -> Self {
|
||||
let options = format!("lutris:rungame/{}", game.id);
|
||||
Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
game.name.as_str(),
|
||||
"lutris",
|
||||
"",
|
||||
|
||||
@@ -7,7 +7,7 @@ pub struct OriginGame {
|
||||
impl From<OriginGame> for ShortcutOwned {
|
||||
fn from(game: OriginGame) -> Self {
|
||||
let launch = format!("origin2://game/launch?offerIds={}&autoDownload=1", game.id);
|
||||
let shortcut = Shortcut::new(0, game.title.as_str(), launch.as_str(), "", "", "", "");
|
||||
let shortcut = Shortcut::new("0", game.title.as_str(), launch.as_str(), "", "", "", "");
|
||||
let mut owned_shortcut = shortcut.to_owned();
|
||||
owned_shortcut.tags.push("Origin".to_owned());
|
||||
owned_shortcut.tags.push("Ready TO Play".to_owned());
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn create_sym_links(shortcut: &ShortcutOwned) -> ShortcutOwned {
|
||||
};
|
||||
|
||||
let new_shortcut = Shortcut::new(
|
||||
0,
|
||||
"0",
|
||||
shortcut.app_name.as_str(),
|
||||
exe.as_str(),
|
||||
start_dir.as_str(),
|
||||
|
||||
+1
-1
@@ -9,6 +9,6 @@ pub(crate) struct Game {
|
||||
impl From<Game> for ShortcutOwned {
|
||||
fn from(game: Game) -> Self {
|
||||
let launch = format!("uplay://launch/{}", game.id);
|
||||
Shortcut::new(0, &game.name, &launch, "", &game.icon, "", "").to_owned()
|
||||
Shortcut::new("0", &game.name, &launch, "", &game.icon, "", "").to_owned()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user