mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Now I set the invite instead of adding it.
You should send a lobby invite or a rich invite, but not both.
This commit is contained in:
parent
73fa7b50b5
commit
2a373bbf79
3 changed files with 10 additions and 6 deletions
|
|
@ -1037,7 +1037,7 @@ void Callback(Common_Message *msg)
|
|||
PRINT_DEBUG("Steam_Friends Got Lobby Invite\n");
|
||||
//TODO: the user should accept the invite first but we auto accept it because there's no gui yet
|
||||
// Then we will handle it !
|
||||
overlay->AddLobbyInvite(*find_friend(msg->source_id()), msg->friend_messages().lobby_id());
|
||||
overlay->SetLobbyInvite(*find_friend(msg->source_id()), msg->friend_messages().lobby_id());
|
||||
|
||||
//GameLobbyJoinRequested_t data;
|
||||
//data.m_steamIDLobby = CSteamID((uint64)msg->friend_messages().lobby_id());
|
||||
|
|
@ -1049,7 +1049,7 @@ void Callback(Common_Message *msg)
|
|||
PRINT_DEBUG("Steam_Friends Got Game Invite\n");
|
||||
//TODO: I'm pretty sure that the user should accept the invite before this is posted but we do like above
|
||||
// Then we will handle it !
|
||||
overlay->AddRichInvite(*find_friend(msg->source_id()), msg->friend_messages().connect_str().c_str());
|
||||
overlay->SetRichInvite(*find_friend(msg->source_id()), msg->friend_messages().connect_str().c_str());
|
||||
|
||||
//std::string const& connect_str = msg->friend_messages().connect_str();
|
||||
//GameRichPresenceJoinRequested_t data = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue