From 02402225e766ba850edff2ea6981c723444f133b 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 9d889892b..6b8fc0fd6 100644 --- a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp +++ b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp @@ -1132,8 +1132,8 @@ namespace sts::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++) {