aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorWilliam Venner <[email protected]>2021-04-21 20:41:06 +0100
committerWilliam Venner <[email protected]>2021-04-21 20:41:06 +0100
commitdeb807d5c163c42f17540451b0189044352bea7d (patch)
treec01ce69abbbac3c26110dfe6a10d975a03f5de25 /src/app.rs
parentMerge pull request #45 from WilliamVenner/fix/macos_builds (diff)
downloadsteamworks-rs-deb807d5c163c42f17540451b0189044352bea7d.tar.xz
steamworks-rs-deb807d5c163c42f17540451b0189044352bea7d.zip
Add `Client::init_app()` which removes the need for `steam_appid.txt`
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index 3127459..6f7b6a7 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -4,6 +4,11 @@ use super::*;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct AppId(pub u32);
+impl From<u32> for AppId {
+ fn from(id: u32) -> Self {
+ AppId(id)
+ }
+}
/// Access to the steam apps interface
pub struct Apps<Manager> {