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