mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-29 22:04:17 +01:00
Stub some friends service calls
Needed for Diablo 3
This commit is contained in:
parent
ebcbc5b05b
commit
52c4228ecf
@ -27,4 +27,8 @@ namespace skyline::service::friends {
|
|||||||
Result IFriendService::UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IFriendService::UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IFriendService::GetPlayHistoryRegistrationKey(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,15 @@ namespace skyline::service::friends {
|
|||||||
|
|
||||||
Result UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result UpdateUserPresence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
Result GetPlayHistoryRegistrationKey(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
SERVICE_DECL(
|
SERVICE_DECL(
|
||||||
SFUNC(0x2775, IFriendService, GetFriendList),
|
SFUNC(0x2775, IFriendService, GetFriendList),
|
||||||
SFUNC(0x28A0, IFriendService, GetBlockedUserListIds),
|
SFUNC(0x28A0, IFriendService, GetBlockedUserListIds),
|
||||||
SFUNC(0x2968, IFriendService, DeclareOpenOnlinePlaySession),
|
SFUNC(0x2968, IFriendService, DeclareOpenOnlinePlaySession),
|
||||||
SFUNC(0x2969, IFriendService, DeclareCloseOnlinePlaySession),
|
SFUNC(0x2969, IFriendService, DeclareCloseOnlinePlaySession),
|
||||||
SFUNC(0x2972, IFriendService, UpdateUserPresence)
|
SFUNC(0x2972, IFriendService, UpdateUserPresence),
|
||||||
|
SFUNC(0x29CC, IFriendService, GetPlayHistoryRegistrationKey)
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -16,4 +16,8 @@ namespace skyline::service::friends {
|
|||||||
response.copyHandles.push_back(handle);
|
response.copyHandles.push_back(handle);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result INotificationService::Pop(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
return result::NoNotifications;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
#include <services/serviceman.h>
|
#include <services/serviceman.h>
|
||||||
|
|
||||||
namespace skyline::service::friends {
|
namespace skyline::service::friends {
|
||||||
|
namespace result {
|
||||||
|
constexpr Result NoNotifications{124, 15};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief INotificationService is used by applications to receive notifications
|
* @brief INotificationService is used by applications to receive notifications
|
||||||
* @url https://switchbrew.org/wiki/Friend_services#INotificationService
|
* @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 GetEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
Result Pop(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
SERVICE_DECL(
|
SERVICE_DECL(
|
||||||
SFUNC(0x0, INotificationService, GetEvent)
|
SFUNC(0x0, INotificationService, GetEvent),
|
||||||
|
SFUNC(0x2, INotificationService, Pop)
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user