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

This commit is contained in:
Michael Scire 2021-07-21 19:36:46 -07:00
parent 389c3b6baa
commit 4cb4707f34
3 changed files with 32 additions and 18 deletions

View file

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