mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-27 06:39:06 +00:00
Enables full trimming for Ryujinx, and in doing so removes many usages of reflection, namely: IUserService no longer uses reflection to find possible service types, and now has a generated switch based on name Ryujinx.HLE.HOS.Tamper no longer uses dynamic to do operations, now using INumber<T> and friends Cmif and Tipc commands in Ryujinx.HLE.HOS.Services no longer get resolved via reflection and are now done via generated virtual methods Fix things broken by trimming (profile panel, DiscordRPC)
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using Ryujinx.Common.Logging;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ldn.Lp2p
|
|
{
|
|
partial class ISfService : IpcService
|
|
{
|
|
public ISfService(ServiceCtx context) { }
|
|
|
|
[CommandCmif(0)]
|
|
// Initialize()
|
|
public ResultCode Initialize(ServiceCtx context)
|
|
{
|
|
context.ResponseData.Write(0);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(768)]
|
|
// CreateGroup(buffer<nn::lp2p::GroupInfo, 0x31)
|
|
public ResultCode CreateGroup(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(776)]
|
|
// DestroyGroup()
|
|
public ResultCode DestroyGroup(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(1536)]
|
|
// SendToOtherGroup(nn::lp2p::MacAddress, nn::lp2p::GroupId, s16, s16, u32, buffer<unknown, 0x21>)
|
|
public ResultCode SendToOtherGroup(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(1544)]
|
|
// RecvFromOtherGroup(u32, buffer<unknown, 0x22>) -> (nn::lp2p::MacAddress, u16, s16, u32, s32)
|
|
public ResultCode RecvFromOtherGroup(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
}
|