1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 11:56:40 +00:00

Update dmnt_cheat_vm.cpp

* fix case fallthrough in function "LogOpcode"
* use same attribute name in one opcode case
This commit is contained in:
Easy World 2021-04-08 09:37:43 +08:00 committed by SciresM
parent 75a2052144
commit e3e3679cfe

View file

@ -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 {
}
}
}
}