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,6 +1,7 @@
|
|||||||
using Ryujinx.Graphics.Device;
|
using Ryujinx.Graphics.Device;
|
||||||
using Ryujinx.Graphics.Gpu.Engine.GPFifo;
|
using Ryujinx.Graphics.Gpu.Engine.GPFifo;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace Ryujinx.Graphics.Gpu.Engine.MME
|
namespace Ryujinx.Graphics.Gpu.Engine.MME
|
||||||
{
|
{
|
||||||
@ -52,7 +53,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.MME
|
|||||||
{
|
{
|
||||||
_executionEngine = new MacroHLE(processor, _hleFunction);
|
_executionEngine = new MacroHLE(processor, _hleFunction);
|
||||||
}
|
}
|
||||||
else if (GraphicsConfig.EnableMacroJit)
|
else if (GraphicsConfig.EnableMacroJit && RuntimeFeature.IsDynamicCodeSupported)
|
||||||
{
|
{
|
||||||
_executionEngine = new MacroJit();
|
_executionEngine = new MacroJit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user