ControllerSupportArgVPre7.cs 740 B

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