From 0b452fe36ba7ac8804c7e1eb140b9496b6612ad3 Mon Sep 17 00:00:00 2001 From: Dima Date: Thu, 3 Nov 2022 23:24:32 +0300 Subject: [PATCH] Stub GetFriendList --- .../main/cpp/skyline/services/friends/IFriendService.cpp | 5 +++++ app/src/main/cpp/skyline/services/friends/IFriendService.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/app/src/main/cpp/skyline/services/friends/IFriendService.cpp b/app/src/main/cpp/skyline/services/friends/IFriendService.cpp index 1f714980..f3bdc9c5 100644 --- a/app/src/main/cpp/skyline/services/friends/IFriendService.cpp +++ b/app/src/main/cpp/skyline/services/friends/IFriendService.cpp @@ -5,4 +5,9 @@ namespace skyline::service::friends { IFriendService::IFriendService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {} + + Result IFriendService::GetFriendList(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(0); // Count of friends + return {}; + } } diff --git a/app/src/main/cpp/skyline/services/friends/IFriendService.h b/app/src/main/cpp/skyline/services/friends/IFriendService.h index 273e22f7..52c3d088 100644 --- a/app/src/main/cpp/skyline/services/friends/IFriendService.h +++ b/app/src/main/cpp/skyline/services/friends/IFriendService.h @@ -13,5 +13,11 @@ namespace skyline::service::friends { class IFriendService : public BaseService { public: IFriendService(const DeviceState &state, ServiceManager &manager); + + Result GetFriendList(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + + SERVICE_DECL( + SFUNC(0x2775, IFriendService, GetFriendList) + ) }; }