cwcheat fix

Fix Criminal girls Money cheat
_S NPJH-50316
_G CRIMINALGIRLS
_C1 MONEY
_L 0x01693FF8 0x000AAE60
This commit is contained in:
sum2012 2014-01-19 13:41:16 +08:00
parent 2e91adc607
commit 9eaec5be58

View File

@ -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);
}