diff --git a/dll/dll/steam_friends.h b/dll/dll/steam_friends.h index 73f7c6ef..f9693aa9 100644 --- a/dll/dll/steam_friends.h +++ b/dll/dll/steam_friends.h @@ -123,6 +123,8 @@ public: CSteamID GetFriendByIndex( int iFriend, EFriendFlags eFriendFlags ); + void GetFriendByIndex(CSteamID& result, int iFriend, EFriendFlags eFriendFlags); + // returns a relationship to a user EFriendRelationship GetFriendRelationship( CSteamID steamIDFriend ); @@ -183,6 +185,8 @@ public: CSteamID GetClanByIndex( int iClan ); + void GetClanByIndex(CSteamID& result, int iClan ); + const char *GetClanName( CSteamID steamIDClan ); const char *GetClanTag( CSteamID steamIDClan ); diff --git a/dll/steam_friends.cpp b/dll/steam_friends.cpp index 39bafdc1..9639c08e 100644 --- a/dll/steam_friends.cpp +++ b/dll/steam_friends.cpp @@ -284,6 +284,15 @@ CSteamID Steam_Friends::GetFriendByIndex( int iFriend, EFriendFlags eFriendFlags return GetFriendByIndex(iFriend, (int)eFriendFlags ); } + +void Steam_Friends::GetFriendByIndex(CSteamID& result, int iFriend, EFriendFlags eFriendFlags) +{ + PRINT_DEBUG_GNU_WIN(); + std::lock_guard lock(global_mutex); + result = GetFriendByIndex(iFriend, (int)eFriendFlags ); +} + + // returns a relationship to a user EFriendRelationship Steam_Friends::GetFriendRelationship( CSteamID steamIDFriend ) { @@ -498,6 +507,13 @@ CSteamID Steam_Friends::GetClanByIndex( int iClan ) return k_steamIDNil; } +void Steam_Friends::GetClanByIndex( CSteamID& result, int iClan ) +{ + PRINT_DEBUG_GNU_WIN(); + std::lock_guard lock(global_mutex); + result = GetClanByIndex(iClan); +} + const char* Steam_Friends::GetClanName( CSteamID steamIDClan ) { PRINT_DEBUG_ENTRY();