|
@@ -2,6 +2,7 @@ using Ryujinx.Common.Logging;
|
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|
|
|
|
+using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy.Types;
|
|
|
using System;
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy
|
|
@@ -316,6 +317,22 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
|
|
return ResultCode.Success;
|
|
return ResultCode.Success;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ [CommandHipc(80)] // 4.0.0+
|
|
|
|
|
+ // SetWirelessPriorityMode(s32 wireless_priority_mode)
|
|
|
|
|
+ public ResultCode SetWirelessPriorityMode(ServiceCtx context)
|
|
|
|
|
+ {
|
|
|
|
|
+ WirelessPriorityMode wirelessPriorityMode = (WirelessPriorityMode)context.RequestData.ReadInt32();
|
|
|
|
|
+
|
|
|
|
|
+ if (wirelessPriorityMode > WirelessPriorityMode.Unknown2)
|
|
|
|
|
+ {
|
|
|
|
|
+ return ResultCode.InvalidParameters;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Logger.Stub?.PrintStub(LogClass.ServiceAm, new { wirelessPriorityMode });
|
|
|
|
|
+
|
|
|
|
|
+ return ResultCode.Success;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
[CommandHipc(90)] // 6.0.0+
|
|
[CommandHipc(90)] // 6.0.0+
|
|
|
// GetAccumulatedSuspendedTickValue() -> u64
|
|
// GetAccumulatedSuspendedTickValue() -> u64
|
|
|
public ResultCode GetAccumulatedSuspendedTickValue(ServiceCtx context)
|
|
public ResultCode GetAccumulatedSuspendedTickValue(ServiceCtx context)
|
|
@@ -356,5 +373,21 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
return ResultCode.Success;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ [CommandHipc(120)] // 11.0.0+
|
|
|
|
|
+ // SaveCurrentScreenshot(s32 album_report_option)
|
|
|
|
|
+ public ResultCode SaveCurrentScreenshot(ServiceCtx context)
|
|
|
|
|
+ {
|
|
|
|
|
+ AlbumReportOption albumReportOption = (AlbumReportOption)context.RequestData.ReadInt32();
|
|
|
|
|
+
|
|
|
|
|
+ if (albumReportOption > AlbumReportOption.Unknown3)
|
|
|
|
|
+ {
|
|
|
|
|
+ return ResultCode.InvalidParameters;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Logger.Stub?.PrintStub(LogClass.ServiceAm, new { albumReportOption });
|
|
|
|
|
+
|
|
|
|
|
+ return ResultCode.Success;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|