summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-18 01:52:24 +0200
committerGitHub <noreply@github.com>2019-10-18 01:52:24 +0200
commitd1713ad45123cf5579a3e0f55bc9d1903a8a6e81 (patch)
treecc900ad06cf5930e415d0c1ec4851a8d86174aa3 /src/core
parentMerge pull request #2966 from FernandoS27/astc-formats (diff)
parentdmnt_cheat_vm: Correct register Restore and ClearRegs behavior (diff)
downloadyuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar.gz
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar.bz2
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar.lz
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar.xz
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.tar.zst
yuzu-d1713ad45123cf5579a3e0f55bc9d1903a8a6e81.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory/dmnt_cheat_vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/memory/dmnt_cheat_vm.cpp b/src/core/memory/dmnt_cheat_vm.cpp
index cc16d15a4..4f4fa5099 100644
--- a/src/core/memory/dmnt_cheat_vm.cpp
+++ b/src/core/memory/dmnt_cheat_vm.cpp
@@ -1133,8 +1133,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) {
case SaveRestoreRegisterOpType::ClearRegs:
case SaveRestoreRegisterOpType::Restore:
default:
- src = registers.data();
- dst = saved_values.data();
+ src = saved_values.data();
+ dst = registers.data();
break;
}
for (std::size_t i = 0; i < NumRegisters; i++) {