1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-20 04:36:38 +00:00

Suppress CS0169 CS0649 warns from HID structs (#1222)

Also fix typo in a pragma restore in Logger
This commit is contained in:
mageven 2020-05-10 19:32:41 +05:30 committed by GitHub
parent be98a7a649
commit 492bb6ee5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 1 deletions

View file

@ -10,7 +10,7 @@ namespace ARMeilleure.Diagnostics
private static long _startTime; private static long _startTime;
private static long[] _accumulatedTime; private static long[] _accumulatedTime;
#pragma warning restore CS0196 #pragma warning restore CS0169
static Logger() static Logger()
{ {

View file

@ -1,5 +1,6 @@
namespace Ryujinx.HLE.HOS.Applets namespace Ryujinx.HLE.HOS.Applets
{ {
#pragma warning disable CS0649
// (8.0.0+ version) // (8.0.0+ version)
unsafe struct ControllerSupportArg unsafe struct ControllerSupportArg
{ {
@ -8,4 +9,5 @@ namespace Ryujinx.HLE.HOS.Applets
public byte EnableExplainText; public byte EnableExplainText;
public fixed byte ExplainText[8 * 0x81]; public fixed byte ExplainText[8 * 0x81];
} }
#pragma warning restore CS0649
} }

View file

@ -1,5 +1,6 @@
namespace Ryujinx.HLE.HOS.Applets namespace Ryujinx.HLE.HOS.Applets
{ {
#pragma warning disable CS0649
struct ControllerSupportArgHeader struct ControllerSupportArgHeader
{ {
public sbyte PlayerCountMin; public sbyte PlayerCountMin;
@ -10,4 +11,5 @@ namespace Ryujinx.HLE.HOS.Applets
public byte EnableSingleMode; public byte EnableSingleMode;
public byte EnableIdentificationColor; public byte EnableIdentificationColor;
} }
#pragma warning restore CS0649
} }

View file

@ -1,5 +1,6 @@
namespace Ryujinx.HLE.HOS.Applets namespace Ryujinx.HLE.HOS.Applets
{ {
#pragma warning disable CS0649
struct ControllerSupportArgPrivate struct ControllerSupportArgPrivate
{ {
public uint PrivateSize; public uint PrivateSize;
@ -11,4 +12,5 @@ namespace Ryujinx.HLE.HOS.Applets
public uint NpadStyleSet; public uint NpadStyleSet;
public uint NpadJoyHoldType; public uint NpadJoyHoldType;
} }
#pragma warning restore CS0649
} }

View file

@ -1,5 +1,6 @@
namespace Ryujinx.HLE.HOS.Applets namespace Ryujinx.HLE.HOS.Applets
{ {
#pragma warning disable CS0649
unsafe struct ControllerSupportResultInfo unsafe struct ControllerSupportResultInfo
{ {
public sbyte PlayerCount; public sbyte PlayerCount;
@ -7,4 +8,5 @@ namespace Ryujinx.HLE.HOS.Applets
public uint SelectedId; public uint SelectedId;
public uint Result; public uint Result;
} }
#pragma warning restore CS0649
} }

View file

@ -2,6 +2,7 @@ using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Services.Hid namespace Ryujinx.HLE.HOS.Services.Hid
{ {
#pragma warning disable CS0169
struct Array2<T> where T : unmanaged struct Array2<T> where T : unmanaged
{ {
T e0, e1; T e0, e1;
@ -50,4 +51,5 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public ref T this[int index] => ref MemoryMarshal.CreateSpan(ref e0, 17)[index]; public ref T this[int index] => ref MemoryMarshal.CreateSpan(ref e0, 17)[index];
public int Length => 17; public int Length => 17;
} }
#pragma warning restore CS0169
} }