From b62ef666e30275c0dccfcc084e2b8ba43dd868b0 Mon Sep 17 00:00:00 2001 From: daisymlleung <151548046+daisymlleung@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:10:21 +0800 Subject: [PATCH] Stub IsBlockedUserListCacheAvailable for Super Bomberman R2 --- src/core/hle/service/friend/friend.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index 9d05f98013..668b8005ec 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp @@ -32,7 +32,7 @@ public: {10200, nullptr, "SendFriendRequestForApplication"}, {10211, nullptr, "AddFacedFriendRequestForApplication"}, {10400, &IFriendService::GetBlockedUserListIds, "GetBlockedUserListIds"}, - {10420, nullptr, "IsBlockedUserListCacheAvailable"}, + {10420, &IFriendService::IsBlockedUserListCacheAvailable, "IsBlockedUserListCacheAvailable"}, {10421, nullptr, "EnsureBlockedUserListAvailable"}, {10500, nullptr, "GetProfileList"}, {10600, nullptr, "DeclareOpenOnlinePlaySession"}, @@ -206,6 +206,18 @@ private: rb.Push(true); } + void IsBlockedUserListCacheAvailable(HLERequestContext& ctx) { + // Stub used by Super Bomberman R2 + IPC::RequestParser rp{ctx}; + const auto uuid{rp.PopRaw()}; + + LOG_WARNING(Service_Friend, "(STUBBED) called, uuid=0x{}", uuid.RawString()); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(true); + } + KernelHelpers::ServiceContext service_context; Kernel::KEvent* completion_event;