mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 12:04:15 +01:00
Stub GetFriendInvitationStorageChannelEvent (0x8C)
This commit is contained in:
parent
d9f6540831
commit
4888919515
@ -11,7 +11,10 @@
|
||||
#include "IApplicationFunctions.h"
|
||||
|
||||
namespace skyline::service::am {
|
||||
IApplicationFunctions::IApplicationFunctions(const DeviceState &state, ServiceManager &manager) : gpuErrorEvent(std::make_shared<type::KEvent>(state, false)), BaseService(state, manager) {}
|
||||
IApplicationFunctions::IApplicationFunctions(const DeviceState &state, ServiceManager &manager)
|
||||
: BaseService(state, manager),
|
||||
gpuErrorEvent(std::make_shared<type::KEvent>(state, false)),
|
||||
friendInvitationStorageChannelEvent(std::make_shared<type::KEvent>(state, false)) {}
|
||||
|
||||
Result IApplicationFunctions::PopLaunchParameter(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
constexpr u32 LaunchParameterMagic{0xC79497CA}; //!< The magic of the application launch parameters
|
||||
@ -143,4 +146,11 @@ namespace skyline::service::am {
|
||||
response.copyHandles.push_back(handle);
|
||||
return {};
|
||||
}
|
||||
|
||||
Result IApplicationFunctions::GetFriendInvitationStorageChannelEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
auto handle{state.process->InsertItem(friendInvitationStorageChannelEvent)};
|
||||
Logger::Debug("Friend Invitiation Storage Channel Event Handle: 0x{:X}", handle);
|
||||
response.copyHandles.push_back(handle);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ namespace skyline::service::am {
|
||||
class IApplicationFunctions : public BaseService {
|
||||
private:
|
||||
std::shared_ptr<type::KEvent> gpuErrorEvent; //!< The event signalled on GPU errors
|
||||
std::shared_ptr<type::KEvent> friendInvitationStorageChannelEvent; //!< The event signalled on friend invitations
|
||||
|
||||
public:
|
||||
IApplicationFunctions(const DeviceState &state, ServiceManager &manager);
|
||||
@ -95,6 +96,11 @@ namespace skyline::service::am {
|
||||
*/
|
||||
Result GetGpuErrorDetectedSystemEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetFriendInvitationStorageChannelEvent
|
||||
*/
|
||||
Result GetFriendInvitationStorageChannelEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
SERVICE_DECL(
|
||||
SFUNC(0x1, IApplicationFunctions, PopLaunchParameter),
|
||||
SFUNC(0x14, IApplicationFunctions, EnsureSaveData),
|
||||
@ -107,7 +113,8 @@ namespace skyline::service::am {
|
||||
SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer),
|
||||
SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage),
|
||||
SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility),
|
||||
SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent)
|
||||
SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent),
|
||||
SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent)
|
||||
)
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user