mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
dmnt: add theoretical 'else' support to cheat engine vm conditionals
This commit is contained in:
parent
389c3b6baa
commit
4cb4707f34
3 changed files with 32 additions and 18 deletions
|
@ -142,7 +142,9 @@ namespace ams::dmnt::cheat::impl {
|
|||
VmInt value;
|
||||
};
|
||||
|
||||
struct EndConditionalOpcode {};
|
||||
struct EndConditionalOpcode {
|
||||
bool is_else;
|
||||
};
|
||||
|
||||
struct ControlLoopOpcode {
|
||||
bool start_loop;
|
||||
|
@ -286,7 +288,7 @@ namespace ams::dmnt::cheat::impl {
|
|||
size_t loop_tops[NumRegisters] = {0};
|
||||
private:
|
||||
bool DecodeNextOpcode(CheatVmOpcode *out);
|
||||
void SkipConditionalBlock();
|
||||
void SkipConditionalBlock(bool is_if);
|
||||
void ResetState();
|
||||
|
||||
/* For implementing the DebugLog opcode. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue