trial to see if this dummy implementation will fix msys2 compilation on windows

This commit is contained in:
otavepto 2024-05-22 23:03:14 +03:00
parent 77c2d76bb2
commit 36943fbfe6
2 changed files with 20 additions and 0 deletions

View File

@ -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 );

View File

@ -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<std::recursive_mutex> 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<std::recursive_mutex> lock(global_mutex);
result = GetClanByIndex(iClan);
}
const char* Steam_Friends::GetClanName( CSteamID steamIDClan )
{
PRINT_DEBUG_ENTRY();