2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #2992 from lioncash/dmnt

dmnt_cheat_vm: Correct register Restore and ClearRegs behavior
This commit is contained in:
bunnei 2019-10-17 19:52:24 -04:00 committed by GitHub
commit d1713ad451
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1133,8 +1133,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) {
case SaveRestoreRegisterOpType::ClearRegs: case SaveRestoreRegisterOpType::ClearRegs:
case SaveRestoreRegisterOpType::Restore: case SaveRestoreRegisterOpType::Restore:
default: default:
src = registers.data(); src = saved_values.data();
dst = saved_values.data(); dst = registers.data();
break; break;
} }
for (std::size_t i = 0; i < NumRegisters; i++) { for (std::size_t i = 0; i < NumRegisters; i++) {