mirror of https://github.com/mgba-emu/mgba.git
GB Cheats: Fix Game Genie check code (fixes #2055)
This commit is contained in:
parent
1e017ade23
commit
910089b514
|
@ -98,7 +98,7 @@ static bool GBCheatAddGameGenieLine(struct mCheatSet* cheats, const char* line)
|
||||||
value = ROR(value, 2);
|
value = ROR(value, 2);
|
||||||
value |= value >> 24;
|
value |= value >> 24;
|
||||||
value ^= 0xBA;
|
value ^= 0xBA;
|
||||||
patch->checkValue = value;
|
patch->checkValue = value & 0xFF;
|
||||||
patch->check = true;
|
patch->check = true;
|
||||||
} else {
|
} else {
|
||||||
patch->check = false;
|
patch->check = false;
|
||||||
|
|
Loading…
Reference in New Issue