2021-11-01 22:38:13 +00:00
|
|
|
using Ryujinx.Common.Memory;
|
|
|
|
using System;
|
2020-08-23 20:54:11 +00:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2020-04-03 00:10:02 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Applets
|
|
|
|
{
|
2020-05-10 14:02:41 +00:00
|
|
|
#pragma warning disable CS0649
|
2020-04-03 00:10:02 +00:00
|
|
|
// (8.0.0+ version)
|
2021-11-01 22:38:13 +00:00
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
|
|
struct ControllerSupportArgV7
|
2020-04-03 00:10:02 +00:00
|
|
|
{
|
|
|
|
public ControllerSupportArgHeader Header;
|
2021-11-01 22:38:13 +00:00
|
|
|
public Array8<uint> IdentificationColor;
|
2020-04-03 00:10:02 +00:00
|
|
|
public byte EnableExplainText;
|
2021-11-01 22:38:13 +00:00
|
|
|
public ExplainTextStruct ExplainText;
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 8 * 0x81)]
|
|
|
|
public struct ExplainTextStruct
|
|
|
|
{
|
|
|
|
private byte element;
|
|
|
|
|
|
|
|
public Span<byte> ToSpan() => MemoryMarshal.CreateSpan(ref element, 8 * 0x81);
|
|
|
|
}
|
2020-04-03 00:10:02 +00:00
|
|
|
}
|
2020-05-10 14:02:41 +00:00
|
|
|
#pragma warning restore CS0649
|
2020-04-03 00:10:02 +00:00
|
|
|
}
|