mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-10-30 21:20:10 +00:00
Fix lobby_connect.
This commit is contained in:
parent
cbdd033b34
commit
4180911fec
@ -45,10 +45,10 @@ top:
|
|||||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||||
}
|
}
|
||||||
|
|
||||||
int friend_count = SteamFriends()->GetFriendCount(0);
|
int friend_count = SteamFriends()->GetFriendCount(k_EFriendFlagAll);
|
||||||
std::cout << "People on the network: " << friend_count << std::endl;
|
std::cout << "People on the network: " << friend_count << std::endl;
|
||||||
for (int i = 0; i < friend_count; ++i) {
|
for (int i = 0; i < friend_count; ++i) {
|
||||||
CSteamID id = SteamFriends()->GetFriendByIndex(i, 0);
|
CSteamID id = SteamFriends()->GetFriendByIndex(i, k_EFriendFlagAll);
|
||||||
const char *name = SteamFriends()->GetFriendPersonaName(id);
|
const char *name = SteamFriends()->GetFriendPersonaName(id);
|
||||||
|
|
||||||
FriendGameInfo_t friend_info = {};
|
FriendGameInfo_t friend_info = {};
|
||||||
@ -60,7 +60,7 @@ top:
|
|||||||
|
|
||||||
std::vector<std::string> arguments;
|
std::vector<std::string> arguments;
|
||||||
for (int i = 0; i < friend_count; ++i) {
|
for (int i = 0; i < friend_count; ++i) {
|
||||||
CSteamID id = SteamFriends()->GetFriendByIndex(i, 0);
|
CSteamID id = SteamFriends()->GetFriendByIndex(i, k_EFriendFlagAll);
|
||||||
const char *name = SteamFriends()->GetFriendPersonaName(id);
|
const char *name = SteamFriends()->GetFriendPersonaName(id);
|
||||||
const char *connect = SteamFriends()->GetFriendRichPresence( id, "connect");
|
const char *connect = SteamFriends()->GetFriendRichPresence( id, "connect");
|
||||||
FriendGameInfo_t friend_info = {};
|
FriendGameInfo_t friend_info = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user