diff options
| author | 2020-07-15 01:22:52 +0200 | |
|---|---|---|
| committer | 2020-07-15 01:22:52 +0200 | |
| commit | e90802e762c0a15bd0d7bb7f5df006a4298e1023 (patch) | |
| tree | d4bf6c5efb0f74c68627df4512c037784c79c8f5 /src | |
| parent | dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister) (diff) | |
| download | yuzu-e90802e762c0a15bd0d7bb7f5df006a4298e1023.tar.gz yuzu-e90802e762c0a15bd0d7bb7f5df006a4298e1023.tar.xz yuzu-e90802e762c0a15bd0d7bb7f5df006a4298e1023.zip | |
clang-format
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/memory/dmnt_cheat_vm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory/dmnt_cheat_vm.cpp b/src/core/memory/dmnt_cheat_vm.cpp index 0faebe951..2e7da23fe 100644 --- a/src/core/memory/dmnt_cheat_vm.cpp +++ b/src/core/memory/dmnt_cheat_vm.cpp | |||
| @@ -1173,7 +1173,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { | |||
| 1173 | } | 1173 | } |
| 1174 | } | 1174 | } |
| 1175 | } | 1175 | } |
| 1176 | } else if (auto rw_static_reg = std::get_if<ReadWriteStaticRegisterOpcode>(&cur_opcode.opcode)) { | 1176 | } else if (auto rw_static_reg = |
| 1177 | std::get_if<ReadWriteStaticRegisterOpcode>(&cur_opcode.opcode)) { | ||
| 1177 | if (rw_static_reg->static_idx < NumReadableStaticRegisters) { | 1178 | if (rw_static_reg->static_idx < NumReadableStaticRegisters) { |
| 1178 | // Load a register with a static register. | 1179 | // Load a register with a static register. |
| 1179 | registers[rw_static_reg->idx] = static_registers[rw_static_reg->static_idx]; | 1180 | registers[rw_static_reg->idx] = static_registers[rw_static_reg->static_idx]; |