aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThog <me@thog.eu>2020-03-23 22:19:45 +0100
committerGitHub <noreply@github.com>2020-03-23 22:19:45 +0100
commite5902625318cf0d7e0d2f71a3480a0d5ac5ab886 (patch)
treeb4da1a6963c899e4e2f787d00b4c9a5353731470
parentb2d307d34f02bd77daec5a14e14434769f47f791 (diff)
friends: Stub GetBlockedUserListIds (#1017)
-rw-r--r--Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
index fa1b4738..19edc70e 100644
--- a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
+++ b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
@@ -93,6 +93,25 @@ namespace Ryujinx.HLE.HOS.Services.Friend.ServiceCreator
return ResultCode.Success;
}
+ [Command(10400)]
+ // nn::friends::GetBlockedUserListIds(int offset, nn::account::Uid userId) -> (u32, buffer<nn::account::NetworkServiceAccountId, 0xa>)
+ public ResultCode GetBlockedUserListIds(ServiceCtx context)
+ {
+ int offset = context.RequestData.ReadInt32();
+
+ // Padding
+ context.RequestData.ReadInt32();
+
+ UserId userId = context.RequestData.ReadStruct<UserId>();
+
+ // There are no friends blocked, so we return 0 because the nn::account::NetworkServiceAccountId array is empty.
+ context.ResponseData.Write(0);
+
+ Logger.PrintStub(LogClass.ServiceFriend, new { offset, UserId = userId.ToString() });
+
+ return ResultCode.Success;
+ }
+
[Command(10600)]
// nn::friends::DeclareOpenOnlinePlaySession(nn::account::Uid userId)
public ResultCode DeclareOpenOnlinePlaySession(ServiceCtx context)