1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 05:42:17 +00:00

dmnt_cheat_vm: Correct register Restore and ClearRegs behavior

Previously they were performing the same behavior as the Save and
ClearSave opcode types.
This commit is contained in:
Lioncash 2019-10-17 18:44:35 -04:00 committed by SciresM
parent 4f29eedfe9
commit 48b0b2fc46

View file

@ -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++) {