From 9b46cc42018608f3ee223fcc71fc6b410fc9198b Mon Sep 17 00:00:00 2001 From: Shyanne Date: Sat, 14 Mar 2026 09:51:29 -0400 Subject: [PATCH] rider moment --- .../Notification/INotificationServices.cs | 24 +++++++++++++++++++ .../INotificationServicesForApplication.cs | 16 ------------- 2 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 src/Ryujinx.HLE/HOS/Services/Notification/INotificationServices.cs diff --git a/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServices.cs b/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServices.cs new file mode 100644 index 000000000..4dd0beebf --- /dev/null +++ b/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServices.cs @@ -0,0 +1,24 @@ +namespace Ryujinx.HLE.HOS.Services.Notification +{ + [Service("notif:s")] // 9.0.0+ + class INotificationServicesForSystem : IpcService + { + public INotificationServicesForSystem(ServiceCtx context) { } + + [CommandCmif(1000)] // 9.0.0+ + // GetNotificationCount() -> nn::notification::server::INotificationSystemEventAccessor + public ResultCode GetNotificationCount(ServiceCtx context) + { + MakeObject(context, new INotificationSystemEventAccessor(context)); + return ResultCode.Success; + } + + [CommandCmif(1040)] // 9.0.0+ + // GetNotificationSendingNotifier() -> nn::notification::server::INotificationSystemEventAccessor + public ResultCode GetNotificationSendingNotifier(ServiceCtx context) + { + MakeObject(context, new INotificationSystemEventAccessor(context)); + return ResultCode.Success; + } + } +} diff --git a/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServicesForApplication.cs b/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServicesForApplication.cs index 37fd0fbee..b5ffcc877 100644 --- a/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServicesForApplication.cs +++ b/src/Ryujinx.HLE/HOS/Services/Notification/INotificationServicesForApplication.cs @@ -14,21 +14,5 @@ namespace Ryujinx.HLE.HOS.Services.Notification context.ResponseData.Write(alarmSettingsCount); return ResultCode.Success; } - - [CommandCmif(1000)] // 9.0.0+ - // GetNotificationCount() -> nn::notification::server::INotificationSystemEventAccessor - public ResultCode GetNotificationCount(ServiceCtx context) - { - MakeObject(context, new INotificationSystemEventAccessor(context)); - return ResultCode.Success; - } - - [CommandCmif(1040)] // 9.0.0+ - // GetNotificationSendingNotifier() -> nn::notification::server::INotificationSystemEventAccessor - public ResultCode GetNotificationSendingNotifier(ServiceCtx context) - { - MakeObject(context, new INotificationSystemEventAccessor(context)); - return ResultCode.Success; - } } }