From e3e3679cfe56869eccaab05af3e549b53c5855d7 Mon Sep 17 00:00:00 2001 From: Easy World Date: Thu, 8 Apr 2021 09:37:43 +0800 Subject: [PATCH] Update dmnt_cheat_vm.cpp * fix case fallthrough in function "LogOpcode" * use same attribute name in one opcode case --- stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp index 1e670cae7..0b521ceea 100644 --- a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp +++ b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp @@ -284,6 +284,7 @@ namespace ams::dmnt::cheat::impl { this->LogToDebugFile("O Reg Idx: %x\n", opcode->debug_log.ofs_reg_index); break; } + break; default: this->LogToDebugFile("Unknown opcode: %x\n", opcode->opcode); break; @@ -381,7 +382,7 @@ namespace ams::dmnt::cheat::impl { opcode.begin_cond.mem_type = (MemoryAccessType)((first_dword >> 20) & 0xF); opcode.begin_cond.cond_type = (ConditionalComparisonType)((first_dword >> 16) & 0xF); opcode.begin_cond.rel_address = ((u64)(first_dword & 0xFF) << 32ul) | ((u64)second_dword); - opcode.begin_cond.value = GetNextVmInt(opcode.store_static.bit_width); + opcode.begin_cond.value = GetNextVmInt(opcode.begin_cond.bit_width); } break; case CheatVmOpcodeType_EndConditionalBlock: @@ -1287,4 +1288,4 @@ namespace ams::dmnt::cheat::impl { } } -} \ No newline at end of file +}