-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,369 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target | ||
auth_key.txt | ||
cache.json | ||
config.toml | ||
config.toml | ||
.thumbnails |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
use std::io; | ||
#[cfg(windows)] use winres::WindowsResource; | ||
#[cfg(windows)] | ||
use winres::WindowsResource; | ||
|
||
fn main() -> io::Result<()> { | ||
#[cfg(windows)] { | ||
#[cfg(windows)] | ||
{ | ||
WindowsResource::new() | ||
.set_icon("resources/logo.ico") | ||
.compile()?; | ||
} | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut}; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct AmazonGame{ | ||
pub title : String, | ||
pub id : String | ||
pub struct AmazonGame { | ||
pub title: String, | ||
pub id: String, | ||
} | ||
|
||
|
||
|
||
impl From<AmazonGame> for ShortcutOwned { | ||
fn from(game: AmazonGame) -> Self { | ||
let launch = format!("amazon-games://play/{}", game.id); | ||
Shortcut::new( | ||
"0", | ||
game.title.as_str(), | ||
launch.as_str(), | ||
"", | ||
"", | ||
"", | ||
"", | ||
) | ||
.to_owned() | ||
Shortcut::new("0", game.title.as_str(), launch.as_str(), "", "", "", "").to_owned() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Deserialize, Serialize, Clone)] | ||
pub struct AmazonSettings{ | ||
pub enabled:bool | ||
} | ||
pub struct AmazonSettings { | ||
pub enabled: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.