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