diff options
Diffstat (limited to 'Ryujinx.HLE')
-rw-r--r-- | Ryujinx.HLE/FileSystem/Content/ContentManager.cs | 2 | ||||
-rw-r--r-- | Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs | 2 | ||||
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs | 2 | ||||
-rw-r--r-- | Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs index 9203f156..8ac31a4c 100644 --- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs +++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs @@ -102,7 +102,7 @@ namespace Ryujinx.HLE.FileSystem.Content _contentDictionary = new SortedDictionary<(ulong, NcaContentType), string>(); _locationEntries = new Dictionary<StorageId, LinkedList<LocationEntry>>(); - foreach (StorageId storageId in Enum.GetValues(typeof(StorageId))) + foreach (StorageId storageId in Enum.GetValues<StorageId>()) { string contentDirectory = null; string contentPathString = null; diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs index 178dc029..91ab4d96 100644 --- a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs +++ b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs @@ -433,7 +433,7 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall generator.Emit(OpCodes.Ret); - return (Action<T, ExecutionContext>)method.CreateDelegate(typeof(Action<T, ExecutionContext>)); + return method.CreateDelegate<Action<T, ExecutionContext>>(); } private static void CheckIfTypeIsSupported(Type type, string svcName) diff --git a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs index 2fdb94e4..21572b9f 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs @@ -1021,7 +1021,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid HidVibrationDeviceType vibrationDeviceType = HidVibrationDeviceType.None; - if (Enum.IsDefined(typeof(NpadStyleIndex), deviceType)) + if (Enum.IsDefined<NpadStyleIndex>(deviceType)) { vibrationDeviceType = HidVibrationDeviceType.LinearResonantActuator; } diff --git a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs index 8aa0bfff..cceaf563 100644 --- a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs +++ b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs @@ -60,7 +60,7 @@ namespace Ryujinx.HLE.HOS.SystemState SystemLanguage.TraditionalChinese => TitleLanguage.Taiwanese, SystemLanguage.Chinese or SystemLanguage.SimplifiedChinese => TitleLanguage.Chinese, - _ => Enum.Parse<TitleLanguage>(Enum.GetName(typeof(SystemLanguage), language)), + _ => Enum.Parse<TitleLanguage>(Enum.GetName<SystemLanguage>(language)), }; } |