From 40a287f24bde5dfde337fc34a75e17c5fee9af6b Mon Sep 17 00:00:00 2001 From: universal963 <36097923+universal963@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:55:58 +0800 Subject: [PATCH] More accurate `Steam_Friends::Deprecated_GetFriendGamePlayed()` --- dll/steam_friends.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dll/steam_friends.cpp b/dll/steam_friends.cpp index a454c795..e0c98b31 100644 --- a/dll/steam_friends.cpp +++ b/dll/steam_friends.cpp @@ -358,11 +358,8 @@ EPersonaState Steam_Friends::GetFriendPersonaState( CSteamID steamIDFriend ) bool Steam_Friends::Deprecated_GetFriendGamePlayed(CSteamID steamIDFriend, int32 *pnGameID, uint32 *punGameIP, uint16 *pusGamePort) { PRINT_DEBUG_ENTRY(); - if (punGameIP) - *punGameIP = 0; - if (pusGamePort) - *pusGamePort = 0; - return true; + // TODO: real steam seems not to fill memory pointed by pnGameID + return GetFriendGamePlayed(steamIDFriend, NULL, punGameIP, pusGamePort, NULL); }