Check RuntimeFeature before trying to create MacroJit instead of baking that logic into GraphicsConfig.EnableMacroJit

This commit is contained in:
Evan Husted 2025-03-02 02:01:05 -06:00
parent 5a1476148f
commit 39ced98cb6

View File

@ -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();
}