From a5fe239948c2c296acefd20a63687249dbd554aa Mon Sep 17 00:00:00 2001 From: Berkan Diler Date: Sat, 12 Feb 2022 15:23:32 +0100 Subject: [PATCH] Use Delegate.CreateDelegate generic overloads --- Ryujinx.Graphics.Gpu/Engine/MME/MacroJitCompiler.cs | 2 +- Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics.Gpu/Engine/MME/MacroJitCompiler.cs b/Ryujinx.Graphics.Gpu/Engine/MME/MacroJitCompiler.cs index d281a75a8..f8d839fa0 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MME/MacroJitCompiler.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MME/MacroJitCompiler.cs @@ -112,7 +112,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.MME _ilGen.Emit(OpCodes.Ret); } - return (MacroExecute)_meth.CreateDelegate(typeof(MacroExecute)); + return _meth.CreateDelegate(); } /// diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/SyscallTable.cs index 178dc0298..91ab4d96b 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)method.CreateDelegate(typeof(Action)); + return method.CreateDelegate>(); } private static void CheckIfTypeIsSupported(Type type, string svcName)