From c454967221370ba292aefe4db6e225654fd6e0e4 Mon Sep 17 00:00:00 2001 From: darktux Date: Fri, 5 Apr 2024 01:58:30 +0200 Subject: [PATCH] Return correct amount of values from IFriendService::GetReceivedFriendRequestCount --- src/core/hle/service/friend/friend.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index 163d097b20..e185699b38 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp @@ -248,6 +248,17 @@ private: } void GetReceivedFriendRequestCount(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + [[maybe_unused]] const auto uuid = rp.PopRaw(); + + LOG_DEBUG(Service_Friend, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(ResultSuccess); + rb.Push(0); + } + + void GetUserPresenceView(HLERequestContext& ctx) { LOG_DEBUG(Service_Friend, "(STUBBED) called"); u8 buf[0xe0]{};