From 48b0b2fc46c7331ba3cb9b297475db9e0d82cd66 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 Oct 2019 18:44:35 -0400 Subject: [PATCH] dmnt_cheat_vm: Correct register Restore and ClearRegs behavior Previously they were performing the same behavior as the Save and ClearSave opcode types. --- stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp | 4 ++-- 1 file changed, 2 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 10be69997..be25cf80d 100644 --- a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp +++ b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp @@ -1131,8 +1131,8 @@ namespace ams::dmnt::cheat::impl { case SaveRestoreRegisterOpType_ClearRegs: case SaveRestoreRegisterOpType_Restore: default: - src = this->registers; - dst = this->saved_values; + src = this->saved_values; + dst = this->registers; break; } for (size_t i = 0; i < NumRegisters; i++) {