Make orders strings instead of usize (#63)

This commit is contained in:
Philip Kristoffersen
2022-03-28 19:44:23 +02:00
committed by GitHub
parent 20fa076ee7
commit 704d5b5758
11 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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());