mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-07 18:12:14 +02: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:
parent
73d904036d
commit
02402225e7
@ -1132,8 +1132,8 @@ namespace sts::dmnt::cheat::impl {
|
|||||||
case SaveRestoreRegisterOpType_ClearRegs:
|
case SaveRestoreRegisterOpType_ClearRegs:
|
||||||
case SaveRestoreRegisterOpType_Restore:
|
case SaveRestoreRegisterOpType_Restore:
|
||||||
default:
|
default:
|
||||||
src = this->registers;
|
src = this->saved_values;
|
||||||
dst = this->saved_values;
|
dst = this->registers;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < NumRegisters; i++) {
|
for (size_t i = 0; i < NumRegisters; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user