aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs')
-rw-r--r--Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs b/Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs
index dac445b0..a2aa73a4 100644
--- a/Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs
+++ b/Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs
@@ -11,6 +11,7 @@ namespace Ryujinx.HLE.HOS.Tamper
public string Name { get; }
public bool TampersCodeMemory { get; set; } = false;
public ITamperedProcess Process { get; }
+ public bool IsEnabled { get; set; }
public AtmosphereProgram(string name, ITamperedProcess process, Parameter<long> pressedKeys, IOperation entryPoint)
{
@@ -22,8 +23,11 @@ namespace Ryujinx.HLE.HOS.Tamper
public void Execute(ControllerKeys pressedKeys)
{
- _pressedKeys.Value = (long)pressedKeys;
- _entryPoint.Execute();
+ if (IsEnabled)
+ {
+ _pressedKeys.Value = (long)pressedKeys;
+ _entryPoint.Execute();
+ }
}
}
}