2019-09-19 02:45:11 +02:00
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2019-07-10 17:59:54 +02:00
|
|
|
[Service("appletAE")]
|
2018-04-21 21:30:06 +02:00
|
|
|
class IAllSystemAppletProxiesService : IpcService
|
|
|
|
{
|
2019-07-12 03:13:43 +02:00
|
|
|
public IAllSystemAppletProxiesService(ServiceCtx context) { }
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2021-04-14 00:01:24 +02:00
|
|
|
[CommandHipc(100)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// OpenSystemAppletProxy(u64, pid, handle<copy>) -> object<nn::am::service::ISystemAppletProxy>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode OpenSystemAppletProxy(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2020-12-02 00:23:43 +01:00
|
|
|
MakeObject(context, new ISystemAppletProxy(context.Request.HandleDesc.PId));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
2021-06-28 20:54:45 +02:00
|
|
|
|
|
|
|
[CommandHipc(200)]
|
|
|
|
[CommandHipc(201)] // 3.0.0+
|
|
|
|
// OpenLibraryAppletProxy(u64, pid, handle<copy>) -> object<nn::am::service::ILibraryAppletProxy>
|
|
|
|
public ResultCode OpenLibraryAppletProxy(ServiceCtx context)
|
|
|
|
{
|
|
|
|
MakeObject(context, new ILibraryAppletProxy(context.Request.HandleDesc.PId));
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
}
|