aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Apm/IManagerPrivileged.cs
blob: 9620c30a1e0ec2cb2a5f79349eb319c514cbe80f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Ryujinx.HLE.HOS.Services.Apm
{
    // NOTE: This service doesn’t exist anymore after firmware 7.0.1. But some outdated homebrew still uses it.

    [Service("apm:p")] // 1.0.0-7.0.1
    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;
        }
    }
}