Update TamperMachine and disable write-to-code prevention (#2506)
* Enable write to memory and improve logging * Update tamper machine opcodes and improve reporting * Add Else support * Add missing private statement
This commit is contained in:
parent
a27986c311
commit
ff8849671a
15 changed files with 156 additions and 66 deletions
|
@ -20,17 +20,21 @@ namespace Ryujinx.HLE.HOS.Tamper
|
|||
public Dictionary<byte, Register> StaticRegisters { get; }
|
||||
public ulong ExeAddress { get; }
|
||||
public ulong HeapAddress { get; }
|
||||
public ulong AliasAddress { get; }
|
||||
public ulong AslrAddress { get; }
|
||||
|
||||
public CompilationContext(ulong exeAddress, ulong heapAddress, ITamperedProcess process)
|
||||
public CompilationContext(ulong exeAddress, ulong heapAddress, ulong aliasAddress, ulong aslrAddress, ITamperedProcess process)
|
||||
{
|
||||
Process = process;
|
||||
PressedKeys = new Parameter<long>(0);
|
||||
BlockStack = new Stack<OperationBlock>();
|
||||
Registers = new Dictionary<byte, Register>();
|
||||
SavedRegisters = new Dictionary<byte, Register>();
|
||||
Process = process;
|
||||
PressedKeys = new Parameter<long>(0);
|
||||
BlockStack = new Stack<OperationBlock>();
|
||||
Registers = new Dictionary<byte, Register>();
|
||||
SavedRegisters = new Dictionary<byte, Register>();
|
||||
StaticRegisters = new Dictionary<byte, Register>();
|
||||
ExeAddress = exeAddress;
|
||||
HeapAddress = heapAddress;
|
||||
ExeAddress = exeAddress;
|
||||
HeapAddress = heapAddress;
|
||||
AliasAddress = aliasAddress;
|
||||
AslrAddress = aslrAddress;
|
||||
}
|
||||
|
||||
public Register GetRegister(byte index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue