1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-09-13 05:07:53 -05:00

Some fix to IRequest on NIFM, support sending objects to services (#294)

This commit is contained in:
gdkchan
2018-07-29 01:36:29 -03:00
committed by GitHub
parent 7a308d9e73
commit fdda67d476
4 changed files with 54 additions and 21 deletions

View File

@@ -47,13 +47,15 @@ namespace Ryujinx.HLE.OsHle.Ipc
HasPId = true;
}
public static IpcHandleDesc MakeCopy(int Handle) => new IpcHandleDesc(
new int[] { Handle },
new int[0]);
public static IpcHandleDesc MakeCopy(params int[] Handles)
{
return new IpcHandleDesc(Handles, new int[0]);
}
public static IpcHandleDesc MakeMove(int Handle) => new IpcHandleDesc(
new int[0],
new int[] { Handle });
public static IpcHandleDesc MakeMove(params int[] Handles)
{
return new IpcHandleDesc(new int[0], Handles);
}
public byte[] GetBytes()
{