/ src / Ryujinx.HLE / HOS / Applets / Controller / ControllerSupportArgVPre7.cs
ControllerSupportArgVPre7.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      // (1.0.0+ version)
 9      [StructLayout(LayoutKind.Sequential, Pack = 1)]
10      struct ControllerSupportArgVPre7
11      {
12          public ControllerSupportArgHeader Header;
13          public Array4<uint> IdentificationColor;
14          public byte EnableExplainText;
15          public ExplainTextStruct ExplainText;
16  
17          [StructLayout(LayoutKind.Sequential, Size = 4 * 0x81)]
18          public struct ExplainTextStruct
19          {
20              private byte element;
21  
22              public Span<byte> AsSpan() => MemoryMarshal.CreateSpan(ref element, 4 * 0x81);
23          }
24      }
25  #pragma warning restore CS0649
26  }