mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Check RuntimeFeature before trying to create MacroJit instead of baking that logic into GraphicsConfig.EnableMacroJit
This commit is contained in:
parent
5a1476148f
commit
39ced98cb6
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using Ryujinx.Graphics.Device;
|
||||
using Ryujinx.Graphics.Gpu.Engine.GPFifo;
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Ryujinx.Graphics.Gpu.Engine.MME
|
||||
{
|
||||
|
|
@ -52,7 +53,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.MME
|
|||
{
|
||||
_executionEngine = new MacroHLE(processor, _hleFunction);
|
||||
}
|
||||
else if (GraphicsConfig.EnableMacroJit)
|
||||
else if (GraphicsConfig.EnableMacroJit && RuntimeFeature.IsDynamicCodeSupported)
|
||||
{
|
||||
_executionEngine = new MacroJit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue