mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-27 22:29:46 +01:00
ff8849671a
* Enable write to memory and improve logging * Update tamper machine opcodes and improve reporting * Add Else support * Add missing private statement
29 lines
848 B
C#
29 lines
848 B
C#
using Ryujinx.HLE.HOS.Services.Hid;
|
|
using Ryujinx.HLE.HOS.Tamper.Operations;
|
|
|
|
namespace Ryujinx.HLE.HOS.Tamper
|
|
{
|
|
class AtmosphereProgram : ITamperProgram
|
|
{
|
|
private Parameter<long> _pressedKeys;
|
|
private IOperation _entryPoint;
|
|
|
|
public string Name { get; }
|
|
public bool TampersCodeMemory { get; set; } = false;
|
|
public ITamperedProcess Process { get; }
|
|
|
|
public AtmosphereProgram(string name, ITamperedProcess process, Parameter<long> pressedKeys, IOperation entryPoint)
|
|
{
|
|
Name = name;
|
|
Process = process;
|
|
_pressedKeys = pressedKeys;
|
|
_entryPoint = entryPoint;
|
|
}
|
|
|
|
public void Execute(ControllerKeys pressedKeys)
|
|
{
|
|
_pressedKeys.Value = (long)pressedKeys;
|
|
_entryPoint.Execute();
|
|
}
|
|
}
|
|
}
|