mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
24 lines
663 B
C#
24 lines
663 B
C#
using Ryujinx.Core.OsHle.Handles;
|
|
using Ryujinx.Core.OsHle.Ipc;
|
|
|
|
namespace Ryujinx.Core.OsHle.IpcServices
|
|
{
|
|
static class ObjHelper
|
|
{
|
|
public static void MakeObject(ServiceCtx Context, object Obj)
|
|
{
|
|
if (Context.Session is HDomain Dom)
|
|
{
|
|
Context.Response.ResponseObjIds.Add(Dom.Add(Obj));
|
|
}
|
|
else
|
|
{
|
|
HSessionObj HndData = new HSessionObj(Context.Session, Obj);
|
|
|
|
int VHandle = Context.Process.HandleTable.OpenHandle(HndData);
|
|
|
|
Context.Response.HandleDesc = IpcHandleDesc.MakeMove(VHandle);
|
|
}
|
|
}
|
|
}
|
|
} |