ControllerSupportArgV7.cs 737 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. // (8.0.0+ version)
  8. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  9. struct ControllerSupportArgV7
  10. {
  11. public ControllerSupportArgHeader Header;
  12. public Array8<uint> IdentificationColor;
  13. public byte EnableExplainText;
  14. public ExplainTextStruct ExplainText;
  15. [StructLayout(LayoutKind.Sequential, Size = 8 * 0x81)]
  16. public struct ExplainTextStruct
  17. {
  18. private byte element;
  19. public Span<byte> AsSpan() => MemoryMarshal.CreateSpan(ref element, 8 * 0x81);
  20. }
  21. }
  22. #pragma warning restore CS0649
  23. }