diff options
| author | William Venner <[email protected]> | 2021-04-21 20:41:06 +0100 |
|---|---|---|
| committer | William Venner <[email protected]> | 2021-04-21 20:41:06 +0100 |
| commit | deb807d5c163c42f17540451b0189044352bea7d (patch) | |
| tree | c01ce69abbbac3c26110dfe6a10d975a03f5de25 /src/app.rs | |
| parent | Merge pull request #45 from WilliamVenner/fix/macos_builds (diff) | |
| download | steamworks-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.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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> { |