From d75906a3e2e322241b18db50d184b897efb18d8e Mon Sep 17 00:00:00 2001 From: darktux Date: Fri, 5 Apr 2024 01:58:30 +0200 Subject: [PATCH] Implemented IFriendService::GetUserPresenceView stub to get QLaunch friends list running --- src/core/hle/service/friend/friend.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index cf7287a87..2258223c8 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp @@ -59,7 +59,7 @@ public: {20401, nullptr, "SyncBlockedUserList"}, {20500, nullptr, "GetProfileExtraList"}, {20501, nullptr, "GetRelationship"}, - {20600, nullptr, "GetUserPresenceView"}, + {20600, &IFriendService::GetUserPresenceView, "GetUserPresenceView"}, {20700, nullptr, "GetPlayHistoryList"}, {20701, &IFriendService::GetPlayHistoryStatistics, "GetPlayHistoryStatistics"}, {20800, &IFriendService::LoadUserSetting, "LoadUserSetting"}, @@ -245,6 +245,19 @@ private: } void GetReceivedFriendRequestCount(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + [[maybe_unused]] const auto uuid = rp.PopRaw(); + + LOG_DEBUG(Service_Friend, "(STUBBED) called"); + + u8 buf[0xe0]; + ctx.WriteBuffer(buf); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); + } + + void GetUserPresenceView(HLERequestContext& ctx) { LOG_DEBUG(Service_Friend, "(STUBBED) called"); IPC::ResponseBuilder rb{ctx, 3};