ryujinx/src/Ryujinx.HLE/HOS/Services/Apm/IManagerPrivileged.cs
Aaron Robinson ed2b396131 Enable full trimming
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)
2026-03-16 18:02:05 -05:00

20 lines
575 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Ryujinx.HLE.HOS.Services.Apm
{
// NOTE: This service doesnt exist anymore after firmware 7.0.1. But some outdated homebrew still uses it.
[Service("apm:p")] // 1.0.0-7.0.1
partial class IManagerPrivileged : IpcService
{
public IManagerPrivileged(ServiceCtx context) { }
[CommandCmif(0)]
// OpenSession() -> object<nn::apm::ISession>
public ResultCode OpenSession(ServiceCtx context)
{
MakeObject(context, new SessionServer(context));
return ResultCode.Success;
}
}
}