mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 07:18:22 -04:00
dmnt-cheat: Implement remaining VM opcodes
This commit is contained in:
parent
a3fc2c95b8
commit
bc6ad53018
4 changed files with 135 additions and 8 deletions
|
@ -76,7 +76,7 @@ struct StoreStaticOpcode {
|
|||
u32 bit_width;
|
||||
MemoryAccessType mem_type;
|
||||
u32 offset_register;
|
||||
u64 relative_address;
|
||||
u64 rel_address;
|
||||
VmInt value;
|
||||
};
|
||||
|
||||
|
@ -84,7 +84,7 @@ struct BeginConditionalOpcode {
|
|||
u32 bit_width;
|
||||
MemoryAccessType mem_type;
|
||||
ConditionalComparisonType cond_type;
|
||||
u64 relative_address;
|
||||
u64 rel_address;
|
||||
VmInt value;
|
||||
};
|
||||
|
||||
|
@ -106,7 +106,7 @@ struct LoadRegisterMemoryOpcode {
|
|||
MemoryAccessType mem_type;
|
||||
u32 reg_index;
|
||||
bool load_from_reg;
|
||||
u64 relative_address;
|
||||
u64 rel_address;
|
||||
};
|
||||
|
||||
struct StoreToRegisterAddressOpcode {
|
||||
|
@ -170,6 +170,7 @@ class DmntCheatVm {
|
|||
void SkipConditionalBlock();
|
||||
|
||||
static u64 GetVmInt(VmInt value, u32 bit_width);
|
||||
static u64 GetCheatProcessAddress(const CheatProcessMetadata* metadata, MemoryAccessType mem_type, u64 rel_address);
|
||||
public:
|
||||
DmntCheatVm() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue