mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-06 04:19:15 +00:00
[HLE] Renamed INotificationServicesForSystem and implemented a commands (and stubs)
Should allow Ring Fit to get in-game, needs testing.
This commit is contained in:
@@ -4,5 +4,31 @@ namespace Ryujinx.HLE.HOS.Services.Notification
|
|||||||
class INotificationServicesForApplication : IpcService
|
class INotificationServicesForApplication : IpcService
|
||||||
{
|
{
|
||||||
public INotificationServicesForApplication(ServiceCtx context) { }
|
public INotificationServicesForApplication(ServiceCtx context) { }
|
||||||
|
|
||||||
|
[CommandCmif(520)] // 9.0.0+
|
||||||
|
// ListAlarmSettings(nn::arp::ApplicationCertificate) -> s32 AlarmSettingsCount
|
||||||
|
public ResultCode ListAlarmSettings(ServiceCtx context)
|
||||||
|
{
|
||||||
|
// TO-DO: Currently just returns 0. Should read in an ApplicationCertificate.
|
||||||
|
int alarmSettingsCount = 0;
|
||||||
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
namespace Ryujinx.HLE.HOS.Services.Notification
|
|
||||||
{
|
|
||||||
[Service("notif:s")] // 9.0.0+
|
|
||||||
class INotificationServicesForSystem : IpcService
|
|
||||||
{
|
|
||||||
public INotificationServicesForSystem(ServiceCtx context) { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
using Ryujinx.Common.Logging;
|
||||||
|
|
||||||
|
namespace Ryujinx.HLE.HOS.Services.Notification
|
||||||
|
{
|
||||||
|
class INotificationSystemEventAccessor : IpcService
|
||||||
|
{
|
||||||
|
public INotificationSystemEventAccessor(ServiceCtx context) { }
|
||||||
|
|
||||||
|
[CommandCmif(0)] // 9.0.0+
|
||||||
|
// GetNotificationSendingNotifier() -> nn::notification::server::INotificationSystemEventAccessor
|
||||||
|
public ResultCode GetSystemEvent(ServiceCtx context)
|
||||||
|
{
|
||||||
|
Logger.Stub?.PrintStub(LogClass.Service);
|
||||||
|
return ResultCode.Success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user