mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-17 14:57:08 +01:00
24 lines
652 B
C#
24 lines
652 B
C#
|
using Ryujinx.OsHle.Handles;
|
||
|
using Ryujinx.OsHle.Ipc;
|
||
|
|
||
|
namespace Ryujinx.OsHle.Objects
|
||
|
{
|
||
|
static class ObjHelper
|
||
|
{
|
||
|
public static void MakeObject(ServiceCtx Context, object Obj)
|
||
|
{
|
||
|
if (Context.Session is HDomain Dom)
|
||
|
{
|
||
|
Context.Response.ResponseObjIds.Add(Dom.GenertateObjectId(Obj));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
HSessionObj HndData = new HSessionObj(Context.Session, Obj);
|
||
|
|
||
|
int VHandle = Context.Ns.Os.Handles.GenerateId(HndData);
|
||
|
|
||
|
Context.Response.HandleDesc = IpcHandleDesc.MakeMove(VHandle);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|