summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Liam2022-10-07 22:19:41 -0400
committerGravatar Liam2022-10-07 22:19:41 -0400
commitddf64e56af2307bd505f2ad375c31d76072183ff (patch)
tree3ba1d2b9bea4ce1a1832ec6bdb3f428c3646d4eb
parentMerge pull request #9016 from liamwhite/drunken-schedule (diff)
downloadyuzu-ddf64e56af2307bd505f2ad375c31d76072183ff.tar.gz
yuzu-ddf64e56af2307bd505f2ad375c31d76072183ff.tar.xz
yuzu-ddf64e56af2307bd505f2ad375c31d76072183ff.zip
IFriendService: stub CheckFriendListAvailability
-rw-r--r--src/core/hle/service/friend/friend.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index e0db787fc..fad532115 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -26,7 +26,7 @@ public:
26 {10101, &IFriendService::GetFriendList, "GetFriendList"}, 26 {10101, &IFriendService::GetFriendList, "GetFriendList"},
27 {10102, nullptr, "UpdateFriendInfo"}, 27 {10102, nullptr, "UpdateFriendInfo"},
28 {10110, nullptr, "GetFriendProfileImage"}, 28 {10110, nullptr, "GetFriendProfileImage"},
29 {10120, nullptr, "IsFriendListCacheAvailable"}, 29 {10120, &IFriendService::CheckFriendListAvailability, "CheckFriendListAvailability"},
30 {10121, nullptr, "EnsureFriendListAvailable"}, 30 {10121, nullptr, "EnsureFriendListAvailable"},
31 {10200, nullptr, "SendFriendRequestForApplication"}, 31 {10200, nullptr, "SendFriendRequestForApplication"},
32 {10211, nullptr, "AddFacedFriendRequestForApplication"}, 32 {10211, nullptr, "AddFacedFriendRequestForApplication"},
@@ -194,6 +194,17 @@ private:
194 // TODO(ogniK): Return a buffer of u64s which are the "NetworkServiceAccountId" 194 // TODO(ogniK): Return a buffer of u64s which are the "NetworkServiceAccountId"
195 } 195 }
196 196
197 void CheckFriendListAvailability(Kernel::HLERequestContext& ctx) {
198 IPC::RequestParser rp{ctx};
199 const auto uuid{rp.PopRaw<Common::UUID>()};
200
201 LOG_WARNING(Service_Friend, "(STUBBED) called, uuid=0x{}", uuid.RawString());
202
203 IPC::ResponseBuilder rb{ctx, 3};
204 rb.Push(ResultSuccess);
205 rb.Push(true);
206 }
207
197 KernelHelpers::ServiceContext service_context; 208 KernelHelpers::ServiceContext service_context;
198 209
199 Kernel::KEvent* completion_event; 210 Kernel::KEvent* completion_event;