Stub some friends service calls

Needed for Diablo 3
This commit is contained in:
Dima 2022-11-26 12:31:19 +03:00 committed by Billy Laws
parent ebcbc5b05b
commit 52c4228ecf
4 changed files with 19 additions and 2 deletions

View File

@ -27,4 +27,8 @@ namespace skyline::service::friends {
Result IFriendService::UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
Result IFriendService::GetPlayHistoryRegistrationKey(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
}

View File

@ -24,12 +24,15 @@ namespace skyline::service::friends {
Result UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result GetPlayHistoryRegistrationKey(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x2775, IFriendService, GetFriendList),
SFUNC(0x28A0, IFriendService, GetBlockedUserListIds),
SFUNC(0x2968, IFriendService, DeclareOpenOnlinePlaySession),
SFUNC(0x2969, IFriendService, DeclareCloseOnlinePlaySession),
SFUNC(0x2972, IFriendService, UpdateUserPresence)
SFUNC(0x2972, IFriendService, UpdateUserPresence),
SFUNC(0x29CC, IFriendService, GetPlayHistoryRegistrationKey)
)
};
}

View File

@ -16,4 +16,8 @@ namespace skyline::service::friends {
response.copyHandles.push_back(handle);
return {};
}
Result INotificationService::Pop(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return result::NoNotifications;
}
}

View File

@ -7,6 +7,9 @@
#include <services/serviceman.h>
namespace skyline::service::friends {
namespace result {
constexpr Result NoNotifications{124, 15};
}
/**
* @brief INotificationService is used by applications to receive notifications
* @url https://switchbrew.org/wiki/Friend_services#INotificationService
@ -23,8 +26,11 @@ namespace skyline::service::friends {
*/
Result GetEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result Pop(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, INotificationService, GetEvent)
SFUNC(0x0, INotificationService, GetEvent),
SFUNC(0x2, INotificationService, Pop)
)
};
}