1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-14 13:46:41 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Nfc/ISystemManager.cs
Ac_K 55e0c71489
nfc/nfp: Implement ISystemManager and ISystem (#2381)
* nfc/nfp: Implement ISystemManager and ISystem

This PR add permission levels for `nfc` and `nfp` services:
- `nfc`: `CreateUserInterface` and `CreateSystemInterface` are implemented.
- `INfc`: `Initialize` and `IsNfcEnabled` calls are stubbed.
- `nfp`: `CreateDebugInterface` and `CreateSystemInterface` are implemented.
- `INfp`: `GetRegisterInfo2` for `IDebug` and `ISystem` are implemented.

* Addresses gdkchan feedback
2021-06-24 01:05:40 +02:00

19 lines
No EOL
517 B
C#

using Ryujinx.HLE.HOS.Services.Nfc.NfcManager;
namespace Ryujinx.HLE.HOS.Services.Nfc
{
[Service("nfc:sys")]
class ISystemManager : IpcService
{
public ISystemManager(ServiceCtx context) { }
[CommandHipc(0)]
// CreateSystemInterface() -> object<nn::nfc::detail::ISystem>
public ResultCode CreateSystemInterface(ServiceCtx context)
{
MakeObject(context, new INfc(NfcPermissionLevel.System));
return ResultCode.Success;
}
}
}