diff options
| author | Thog <me@thog.eu> | 2020-04-28 03:44:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 11:44:29 +1000 |
| commit | 486f3163f399fb8751939bd7e9b31d0471e841d2 (patch) | |
| tree | f70f5e2ba860f2e0fa75de053bc5176f82d45f94 /Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs | |
| parent | 59145acd7c339db162236699f143e16d4190b631 (diff) | |
Fix hbl 2.3.1 and hbmenu 3.3.0 (#1171)
* Fix hbl 2.3.1 and hbmenu 3.3.0
* log class: Add ServicePtm
* fix build issue
* do not cast titleId to byte
* Address Ac_K's comment
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs new file mode 100644 index 00000000..a7f20bc7 --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Ns/IReadOnlyApplicationControlDataInterface.cs @@ -0,0 +1,23 @@ +namespace Ryujinx.HLE.HOS.Services.Ns +{ + class IReadOnlyApplicationControlDataInterface : IpcService + { + public IReadOnlyApplicationControlDataInterface(ServiceCtx context) { } + + [Command(0)] + // GetApplicationControlData(u8, u64) -> (unknown<4>, buffer<unknown, 6>) + public ResultCode GetApplicationControlData(ServiceCtx context) + { + byte source = (byte)context.RequestData.ReadInt64(); + ulong titleId = context.RequestData.ReadUInt64(); + + long position = context.Request.ReceiveBuff[0].Position; + + byte[] nacpData = context.Device.System.ControlData.ByteSpan.ToArray(); + + context.Memory.WriteBytes(position, nacpData); + + return ResultCode.Success; + } + } +} |
