mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-08 13:11:49 +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:
parent
75a2052144
commit
e3e3679cfe
1 changed files with 3 additions and 2 deletions
|
@ -284,6 +284,7 @@ namespace ams::dmnt::cheat::impl {
|
||||||
this->LogToDebugFile("O Reg Idx: %x\n", opcode->debug_log.ofs_reg_index);
|
this->LogToDebugFile("O Reg Idx: %x\n", opcode->debug_log.ofs_reg_index);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
this->LogToDebugFile("Unknown opcode: %x\n", opcode->opcode);
|
this->LogToDebugFile("Unknown opcode: %x\n", opcode->opcode);
|
||||||
break;
|
break;
|
||||||
|
@ -381,7 +382,7 @@ namespace ams::dmnt::cheat::impl {
|
||||||
opcode.begin_cond.mem_type = (MemoryAccessType)((first_dword >> 20) & 0xF);
|
opcode.begin_cond.mem_type = (MemoryAccessType)((first_dword >> 20) & 0xF);
|
||||||
opcode.begin_cond.cond_type = (ConditionalComparisonType)((first_dword >> 16) & 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.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;
|
break;
|
||||||
case CheatVmOpcodeType_EndConditionalBlock:
|
case CheatVmOpcodeType_EndConditionalBlock:
|
||||||
|
@ -1287,4 +1288,4 @@ namespace ams::dmnt::cheat::impl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue