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