2021-11-01 18:38:13 -04:00
|
|
|
using Ryujinx.Common.Memory;
|
|
|
|
using System;
|
2020-08-23 16:54:11 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2020-04-02 20:10:02 -04:00
|
|
|
namespace Ryujinx.HLE.HOS.Applets
|
|
|
|
{
|
2020-05-10 10:02:41 -04:00
|
|
|
#pragma warning disable CS0649
|
2020-04-02 20:10:02 -04:00
|
|
|
// (8.0.0+ version)
|
2021-11-01 18:38:13 -04:00
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
|
|
struct ControllerSupportArgV7
|
2020-04-02 20:10:02 -04:00
|
|
|
{
|
|
|
|
public ControllerSupportArgHeader Header;
|
2021-11-01 18:38:13 -04:00
|
|
|
public Array8<uint> IdentificationColor;
|
2020-04-02 20:10:02 -04:00
|
|
|
public byte EnableExplainText;
|
2021-11-01 18:38:13 -04: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-02 20:10:02 -04:00
|
|
|
}
|
2020-05-10 10:02:41 -04:00
|
|
|
#pragma warning restore CS0649
|
2020-04-02 20:10:02 -04:00
|
|
|
}
|