From 0decc3759907292353e60d45610625305ba4fa78 Mon Sep 17 00:00:00 2001 From: mordentral Date: Sun, 6 Oct 2024 12:56:24 -0400 Subject: [PATCH] restore presence info, it no longer crashes --- .../Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp | 2 +- .../Source/AdvancedSessions/Private/GetFriendsCallbackProxy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp index 5df1a94..e0f0fd5 100644 --- a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp +++ b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp @@ -152,7 +152,7 @@ void UAdvancedFriendsLibrary::GetFriend(APlayerController *PlayerController, con Friend.PresenceInfo.bIsPlayingThisGame = pres.bIsPlayingThisGame; Friend.PresenceInfo.PresenceState = ((EBPOnlinePresenceState)((int32)pres.Status.State)); // #TODO: Check back in on this in shipping, epic is missing the UTF8_TO_TCHAR call on converting this and its making an invalid string - //Friend.PresenceInfo.StatusString = pres.Status.StatusStr; + Friend.PresenceInfo.StatusString = pres.Status.StatusStr; } } diff --git a/AdvancedSessions/Source/AdvancedSessions/Private/GetFriendsCallbackProxy.cpp b/AdvancedSessions/Source/AdvancedSessions/Private/GetFriendsCallbackProxy.cpp index 2d1d738..a1461c0 100644 --- a/AdvancedSessions/Source/AdvancedSessions/Private/GetFriendsCallbackProxy.cpp +++ b/AdvancedSessions/Source/AdvancedSessions/Private/GetFriendsCallbackProxy.cpp @@ -94,7 +94,7 @@ void UGetFriendsCallbackProxy::OnReadFriendsListCompleted(int32 LocalUserNum, bo BPF.PresenceInfo.PresenceState = ((EBPOnlinePresenceState)((int32)pres.Status.State)); // #TODO: Check back in on this in shipping, epic is missing the UTF8_TO_TCHAR call on converting this and its making an invalid string - //BPF.PresenceInfo.StatusString = pres.Status.StatusStr; + BPF.PresenceInfo.StatusString = pres.Status.StatusStr; BPF.PresenceInfo.bIsJoinable = pres.bIsJoinable; BPF.PresenceInfo.bIsPlayingThisGame = pres.bIsPlayingThisGame;