diff options
author | german77 <juangerman-13@hotmail.com> | 2024-02-05 18:06:25 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2024-02-05 18:08:24 +0100 |
commit | 8113f55f4bf32d7bae7defecd037a544d96fc719 (patch) | |
tree | f1e30ad1d286e79823beabc8e62dff6732b1b555 /src/core/memory/dmnt_cheat_vm.cpp | |
parent | dmnt: cheats: Update cheat vm to latest version (diff) | |
download | yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar.gz yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar.bz2 yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar.lz yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar.xz yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.tar.zst yuzu-8113f55f4bf32d7bae7defecd037a544d96fc719.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/memory/dmnt_cheat_vm.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/memory/dmnt_cheat_vm.cpp b/src/core/memory/dmnt_cheat_vm.cpp index 9424e0f73..8bc81e72d 100644 --- a/src/core/memory/dmnt_cheat_vm.cpp +++ b/src/core/memory/dmnt_cheat_vm.cpp @@ -773,7 +773,7 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryWrite(dst_address, &dst_value, store_static->bit_width); + callbacks->MemoryWriteUnsafe(dst_address, &dst_value, store_static->bit_width); break; } } else if (auto begin_cond = std::get_if<BeginConditionalOpcode>(&cur_opcode.opcode)) { @@ -786,7 +786,7 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryRead(src_address, &src_value, begin_cond->bit_width); + callbacks->MemoryReadUnsafe(src_address, &src_value, begin_cond->bit_width); break; } // Check against condition. @@ -857,8 +857,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryRead(src_address, ®isters[ldr_memory->reg_index], - ldr_memory->bit_width); + callbacks->MemoryReadUnsafe(src_address, ®isters[ldr_memory->reg_index], + ldr_memory->bit_width); break; } } else if (auto str_static = std::get_if<StoreStaticToAddressOpcode>(&cur_opcode.opcode)) { @@ -874,7 +874,7 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryWrite(dst_address, &dst_value, str_static->bit_width); + callbacks->MemoryWriteUnsafe(dst_address, &dst_value, str_static->bit_width); break; } // Increment register if relevant. @@ -1032,7 +1032,7 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryWrite(dst_address, &dst_value, str_register->bit_width); + callbacks->MemoryWriteUnsafe(dst_address, &dst_value, str_register->bit_width); break; } @@ -1111,7 +1111,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryRead(cond_address, &cond_value, begin_reg_cond->bit_width); + callbacks->MemoryReadUnsafe(cond_address, &cond_value, + begin_reg_cond->bit_width); break; } } @@ -1253,7 +1254,7 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case 2: case 4: case 8: - callbacks->MemoryRead(val_address, &log_value, debug_log->bit_width); + callbacks->MemoryReadUnsafe(val_address, &log_value, debug_log->bit_width); break; } } |