Files
ryujinx/src/Ryujinx.HLE/HOS/Services/Ldn/Lp2p/IServiceCreator.cs
Aaron Robinson 8e1e2d69df Make Cmif commands in HLE use virtual method invocation instead of reflection
# Conflicts:
#	src/Ryujinx.HLE/HOS/Services/IpcService.cs
2025-12-30 18:52:32 -06:00

28 lines
851 B
C#

namespace Ryujinx.HLE.HOS.Services.Ldn.Lp2p
{
[Service("lp2p:app")] // 9.0.0+
[Service("lp2p:sys")] // 9.0.0+
partial class IServiceCreator : IpcService
{
public IServiceCreator(ServiceCtx context) { }
[CommandCmif(0)]
// CreateNetworkService(pid, u64, u32) -> object<nn::ldn::detail::ISfService>
public ResultCode CreateNetworkService(ServiceCtx context)
{
MakeObject(context, new ISfService(context));
return ResultCode.Success;
}
[CommandCmif(8)]
// CreateNetworkServiceMonitor(pid, u64) -> object<nn::ldn::detail::ISfServiceMonitor>
public ResultCode CreateNetworkServiceMonitor(ServiceCtx context)
{
MakeObject(context, new ISfServiceMonitor(context));
return ResultCode.Success;
}
}
}