summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2020-04-14 22:59:46 +0200
committerGitHub <noreply@github.com>2020-04-14 22:59:46 +0200
commite366b4ee1f3c29858614689396d302c96aee14f1 (patch)
treededb745e3c305f2b713ff6e80509a40d1db3b534
parentMerge pull request #3661 from bunnei/patch-manager-fix (diff)
parentservice: friend: Stub IFriendService::GetBlockedUserListIds. (diff)
downloadyuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar.gz
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar.bz2
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar.lz
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar.xz
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.tar.zst
yuzu-e366b4ee1f3c29858614689396d302c96aee14f1.zip
-rw-r--r--src/core/hle/service/friend/friend.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index 6aadb3ea8..7938b4b80 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -27,7 +27,7 @@ public:
{10110, nullptr, "GetFriendProfileImage"},
{10200, nullptr, "SendFriendRequestForApplication"},
{10211, nullptr, "AddFacedFriendRequestForApplication"},
- {10400, nullptr, "GetBlockedUserListIds"},
+ {10400, &IFriendService::GetBlockedUserListIds, "GetBlockedUserListIds"},
{10500, nullptr, "GetProfileList"},
{10600, nullptr, "DeclareOpenOnlinePlaySession"},
{10601, &IFriendService::DeclareCloseOnlinePlaySession, "DeclareCloseOnlinePlaySession"},
@@ -121,6 +121,15 @@ private:
};
static_assert(sizeof(SizedFriendFilter) == 0x10, "SizedFriendFilter is an invalid size");
+ void GetBlockedUserListIds(Kernel::HLERequestContext& ctx) {
+ // This is safe to stub, as there should be no adverse consequences from reporting no
+ // blocked users.
+ LOG_WARNING(Service_ACC, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(0); // Indicates there are no blocked users
+ }
+
void DeclareCloseOnlinePlaySession(Kernel::HLERequestContext& ctx) {
// Stub used by Splatoon 2
LOG_WARNING(Service_ACC, "(STUBBED) called");