From e98abf182043630fd8fae1a20a3ddfe5fe56a313 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Mon, 3 Jan 2022 08:39:43 +0000 Subject: Add Cheat Manager (#2964) * add cheatmanager * use modloader to load cheats for manager * addressed nits --- Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs') 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 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(); + } } } } -- cgit v1.2.3