Correct signatures

This commit is contained in:
Isaac Marovitz 2023-10-21 10:46:45 -04:00
parent b960597eeb
commit 4e790c4a6e
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
2 changed files with 9 additions and 6 deletions

View file

@ -2,13 +2,15 @@ using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
using Ryujinx.Horizon.Sdk.Sf.Hipc;
using System;
namespace Ryujinx.Horizon.Am.Ipc.Controllers
{
partial class DisplayController : IDisplayController
{
[CmifCommand(0)]
public Result GetLastForegroundCaptureImage()
public Result GetLastForegroundCaptureImage([Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Span<byte> capture)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
@ -16,7 +18,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
}
[CmifCommand(1)]
public Result UpdateLastForegroundCaptureImage()
public Result UpdateLastForegroundCaptureImage([Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Span<byte> capture)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
@ -24,7 +26,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
}
[CmifCommand(2)]
public Result GetLastApplicationCaptureImage()
public Result GetLastApplicationCaptureImage([Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Span<byte> capture)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);

View file

@ -1,12 +1,13 @@
using Ryujinx.Horizon.Common;
using System;
namespace Ryujinx.Horizon.Sdk.Am.Controllers
{
public interface IDisplayController
{
Result GetLastForegroundCaptureImage();
Result UpdateLastForegroundCaptureImage();
Result GetLastApplicationCaptureImage();
Result GetLastForegroundCaptureImage(Span<byte> capture);
Result UpdateLastForegroundCaptureImage(Span<byte> capture);
Result GetLastApplicationCaptureImage(Span<byte> capture);
Result GetCallerAppletCaptureImage();
Result UpdateCallerAppletCaptureImage();
Result GetLastForegroundCaptureImageEx();