pcsx2: Fix copy bytes patch command

This adjusts the copy bytes command format from
5aaaaaaa nnnnnnnn
00000000 bbbbbbbb
to
5aaaaaaa nnnnnnnn
bbbbbbbb 00000000
so that it matches the copy bytes command format used by PS2 cheat
devices (GS/CB/XP/AR2).
This commit is contained in:
viciousShadow 2018-01-29 01:15:57 +00:00 committed by Jonathan Li
parent 8600ada735
commit 27c45fc995
1 changed files with 2 additions and 2 deletions

View File

@ -74,11 +74,11 @@ void handle_extended_t(IniPatch *p)
PrevCheatType = 0;
break;
case 0x5000: // dddddddd iiiiiiii
case 0x5000: // bbbbbbbb 00000000
for (u32 i = 0; i < IterationCount; i++)
{
u8 mem = memRead8(PrevCheatAddr + i);
memWrite8(((u32)p->data) + i, mem);
memWrite8((p->addr + i) & 0x0FFFFFFF, mem);
}
PrevCheatType = 0;
break;