List apps
This commit is contained in:
parent
a42b72d963
commit
ba92101e06
|
@ -11,6 +11,7 @@ use vapore_proto::{
|
||||||
CAuthentication_PollAuthSessionStatus_Response, EAuthTokenPlatformType,
|
CAuthentication_PollAuthSessionStatus_Response, EAuthTokenPlatformType,
|
||||||
},
|
},
|
||||||
steammessages_base::{cmsg_ipaddress, CMsgIPAddress},
|
steammessages_base::{cmsg_ipaddress, CMsgIPAddress},
|
||||||
|
steammessages_clientserver::CMsgClientLicenseList,
|
||||||
steammessages_clientserver_login::{CMsgClientHello, CMsgClientLogon, CMsgClientLogonResponse},
|
steammessages_clientserver_login::{CMsgClientHello, CMsgClientLogon, CMsgClientLogonResponse},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -155,6 +156,20 @@ pub async fn main() -> eyre::Result<()> {
|
||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
let mut session_cloned = session.clone();
|
||||||
|
tokio::spawn(async move {
|
||||||
|
let license_list_raw = session_cloned
|
||||||
|
.subscribe_message_type(EMsg::k_EMsgClientLicenseList)
|
||||||
|
.recv()
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
let license_list: CMProtoBufMessage<CMsgClientLicenseList> =
|
||||||
|
CMProtoBufMessage::deserialize(license_list_raw).unwrap();
|
||||||
|
for license in &license_list.body.licenses {
|
||||||
|
log::info!("Own package ID: {}", license.package_id());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let mut finish_receiver = session.subscribe_message_type(EMsg::k_EMsgClientLogOnResponse);
|
let mut finish_receiver = session.subscribe_message_type(EMsg::k_EMsgClientLogOnResponse);
|
||||||
|
|
||||||
let raw_response = finish_receiver.recv().await?;
|
let raw_response = finish_receiver.recv().await?;
|
||||||
|
|
Loading…
Reference in a new issue