dmnt: add theoretical 'else' support to cheat engine vm conditionals

This commit is contained in:
Michael Scire committed 2021-07-21 19:36:46 -07:00
1 parent 389c3b6baa
commit 4cb4707f34
3 files changed
+32 -18

No files matched your search

@@ -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. */