From 8f353457295767edaaf9dfccb4d938bc1befeb40 Mon Sep 17 00:00:00 2001 From: Berkan Diler Date: Sun, 13 Feb 2022 14:50:07 +0100 Subject: Use Enum and Delegate.CreateDelegate generic overloads (#3111) * Use Enum generic overloads * Remove EnumExtensions.cs * Use Delegate.CreateDelegate generic overloads --- Ryujinx.Input/Motion/CemuHook/Client.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Input/Motion') diff --git a/Ryujinx.Input/Motion/CemuHook/Client.cs b/Ryujinx.Input/Motion/CemuHook/Client.cs index 214e23f0..ecaf26f0 100644 --- a/Ryujinx.Input/Motion/CemuHook/Client.cs +++ b/Ryujinx.Input/Motion/CemuHook/Client.cs @@ -27,8 +27,8 @@ namespace Ryujinx.Input.Motion.CemuHook private readonly Dictionary> _motionData; private readonly Dictionary _clients; - private readonly bool[] _clientErrorStatus = new bool[Enum.GetValues(typeof(PlayerIndex)).Length]; - private readonly long[] _clientRetryTimer = new long[Enum.GetValues(typeof(PlayerIndex)).Length]; + private readonly bool[] _clientErrorStatus = new bool[Enum.GetValues().Length]; + private readonly long[] _clientRetryTimer = new long[Enum.GetValues().Length]; private NpadManager _npadManager; public Client(NpadManager npadManager) -- cgit v1.2.3