More accurate Steam_Friends::Deprecated_GetFriendGamePlayed()

This commit is contained in:
universal963 2024-10-26 19:55:58 +08:00
parent 186a9a6b32
commit 40a287f24b

View File

@ -358,11 +358,8 @@ EPersonaState Steam_Friends::GetFriendPersonaState( CSteamID steamIDFriend )
bool Steam_Friends::Deprecated_GetFriendGamePlayed(CSteamID steamIDFriend, int32 *pnGameID, uint32 *punGameIP, uint16 *pusGamePort) bool Steam_Friends::Deprecated_GetFriendGamePlayed(CSteamID steamIDFriend, int32 *pnGameID, uint32 *punGameIP, uint16 *pusGamePort)
{ {
PRINT_DEBUG_ENTRY(); PRINT_DEBUG_ENTRY();
if (punGameIP) // TODO: real steam seems not to fill memory pointed by pnGameID
*punGameIP = 0; return GetFriendGamePlayed(steamIDFriend, NULL, punGameIP, pusGamePort, NULL);
if (pusGamePort)
*pusGamePort = 0;
return true;
} }