diff --git a/Cargo.lock b/Cargo.lock index 01cc35a..e67643f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -832,6 +832,7 @@ checksum = "9c5c51b9083a3c620fa67a2a635d1ce7d95b897e957d6b28ff9a5da960a103a6" dependencies = [ "bitvec", "funty", + "lexical-core", "memchr", "version_check", ] @@ -1363,13 +1364,12 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "steam_shortcuts_util" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66ae244ca0579ba5b4e05a52a3afef6f23412e85b8eb448dbf0aa92d0687cb50" +version = "1.1.6" +source = "git+https://github.com/PhilipK/steam_shortcuts_util#45ea43c26aa34a088f4c2a5343434c546c0359a0" dependencies = [ "ascii", "crc32fast", - "nom 7.0.0", + "nom 6.2.1", "nom_locate", ] diff --git a/Cargo.toml b/Cargo.toml index c9a53d6..9a859b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -steam_shortcuts_util = "^1.1.4" +steam_shortcuts_util = {git="https://github.com/PhilipK/steam_shortcuts_util"} steamgriddb_api = "^0.2,0" serde = { version = "^1.0.130", features = ["derive"] } serde_json = "^1.0.68" diff --git a/src/egs/manifest_item.rs b/src/egs/manifest_item.rs index c753c7c..2ce1e24 100644 --- a/src/egs/manifest_item.rs +++ b/src/egs/manifest_item.rs @@ -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(), "", diff --git a/src/gog/gog_game.rs b/src/gog/gog_game.rs index 55c484f..be8c4bf 100644 --- a/src/gog/gog_game.rs +++ b/src/gog/gog_game.rs @@ -44,7 +44,7 @@ impl From 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(), diff --git a/src/heroic/heroic_game.rs b/src/heroic/heroic_game.rs index 9ed4223..7e362e5 100644 --- a/src/heroic/heroic_game.rs +++ b/src/heroic/heroic_game.rs @@ -31,7 +31,7 @@ impl From for ShortcutOwned { let launch_options = format!("launch {}",game.app_name); let shortcut = Shortcut::new( - 0, + "0", game.title.as_str(), launch.as_str(), "", diff --git a/src/itch/itch_game.rs b/src/itch/itch_game.rs index 25cb5c2..b19a229 100644 --- a/src/itch/itch_game.rs +++ b/src/itch/itch_game.rs @@ -16,7 +16,7 @@ impl From 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, diff --git a/src/legendary/legendary_game.rs b/src/legendary/legendary_game.rs index 87b47dd..cbba7d8 100644 --- a/src/legendary/legendary_game.rs +++ b/src/legendary/legendary_game.rs @@ -20,7 +20,7 @@ impl From 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(), diff --git a/src/lutris/lutris_game.rs b/src/lutris/lutris_game.rs index 89ab7ee..64080ff 100644 --- a/src/lutris/lutris_game.rs +++ b/src/lutris/lutris_game.rs @@ -12,7 +12,7 @@ impl From for ShortcutOwned { fn from(game: LutrisGame) -> Self { let options = format!("lutris:rungame/{}", game.id); Shortcut::new( - 0, + "0", game.name.as_str(), "lutris", "", diff --git a/src/origin/origin_game.rs b/src/origin/origin_game.rs index 601d12e..d834ed6 100644 --- a/src/origin/origin_game.rs +++ b/src/origin/origin_game.rs @@ -7,7 +7,7 @@ pub struct OriginGame { impl From 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()); diff --git a/src/sync/symlinks.rs b/src/sync/symlinks.rs index 717c94f..de637d8 100644 --- a/src/sync/symlinks.rs +++ b/src/sync/symlinks.rs @@ -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(), diff --git a/src/uplay/game.rs b/src/uplay/game.rs index 7b9e18d..436917f 100644 --- a/src/uplay/game.rs +++ b/src/uplay/game.rs @@ -9,6 +9,6 @@ pub(crate) struct Game { impl From 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() } }