Fixed cheat functionality (#1116)

Fixed functionality of BXXXXXXX codes
This commit is contained in:
tstambaugh92 2018-08-07 06:50:48 -04:00 committed by fincs
parent 89cc6ede1a
commit bc06b17823

View File

@ -468,7 +468,9 @@ static u32 Cheat_ApplyCheat(const Handle processHandle, const CheatDescription*
// Description: Loads offset register. // Description: Loads offset register.
if (!skipExecution) if (!skipExecution)
{ {
cheat_state.offset = (arg0 & 0x0FFFFFFF); u32 value;
if (!Cheat_Read32(processHandle, arg0 & 0x0FFFFFFF, &value)) return 0;
cheat_state.offset = value;
} }
break; break;
case 0xC: case 0xC: