mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +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:
parent
4f29eedfe9
commit
48b0b2fc46
1 changed files with 2 additions and 2 deletions
|
@ -1131,8 +1131,8 @@ namespace ams::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 a new issue