aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Apm/IManagerPrivileged.cs
blob: bb0049d1bb49b9c94c5c09d6c0bfe7a053fb002a (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;
        }
    }
}