mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
cwcheat fix
Fix Criminal girls Money cheat _S NPJH-50316 _G CRIMINALGIRLS _C1 MONEY _L 0x01693FF8 0x000AAE60
This commit is contained in:
1 parent
2e91adc607
commit
9eaec5be58
1 file changed
+2
-9
+2
-9
@@ -264,17 +264,10 @@ void CWCheatEngine::Run() {
|
||||
int addr = GetAddress(comm & 0x0FFFFFFF);
|
||||
|
||||
switch (comm >> 28) {
|
||||
case 0: // 8-bit write.
|
||||
if (Memory::IsValidAddress(addr)){
|
||||
Memory::Write_U8((u8) arg, addr);
|
||||
}
|
||||
break;
|
||||
case 0: // 8-bit write
|
||||
case 0x1: // 16-bit write
|
||||
if (Memory::IsValidAddress(addr)){
|
||||
Memory::Write_U16((u16) arg, addr);
|
||||
}
|
||||
break;
|
||||
case 0x2: // 32-bit write
|
||||
// 8,16,32 bit write should be the same)
|
||||
if (Memory::IsValidAddress(addr)){
|
||||
Memory::Write_U32((u32) arg, addr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user