diff options
| author | Emmanuel Hansen <emmausssss@gmail.com> | 2022-01-03 08:39:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-03 09:39:43 +0100 |
| commit | e98abf182043630fd8fae1a20a3ddfe5fe56a313 (patch) | |
| tree | 7de26ce2e12e9c5036278c49023b023442f2fbc1 /Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs | |
| parent | dc8a1d5cbafc842c1ad52adcbf0a4a023931541a (diff) | |
Add Cheat Manager (#2964)
* add cheatmanager
* use modloader to load cheats for manager
* addressed nits
Diffstat (limited to 'Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/AtmosphereProgram.cs | 8 |
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(); + } } } } |
