/ src / Ryujinx.HLE / HOS / Applets / Controller / ControllerSupportArgV7.cs
ControllerSupportArgV7.cs
 1  using Ryujinx.Common.Memory;
 2  using System;
 3  using System.Runtime.InteropServices;
 4  
 5  namespace Ryujinx.HLE.HOS.Applets
 6  {
 7  #pragma warning disable CS0649 // Field is never assigned to
 8      // (8.0.0+ version)
 9      [StructLayout(LayoutKind.Sequential, Pack = 1)]
10      struct ControllerSupportArgV7
11      {
12          public ControllerSupportArgHeader Header;
13          public Array8<uint> IdentificationColor;
14          public byte EnableExplainText;
15          public ExplainTextStruct ExplainText;
16  
17          [StructLayout(LayoutKind.Sequential, Size = 8 * 0x81)]
18          public struct ExplainTextStruct
19          {
20              private byte element;
21  
22              public Span<byte> AsSpan() => MemoryMarshal.CreateSpan(ref element, 8 * 0x81);
23          }
24      }
25  #pragma warning restore CS0649
26  }