Skip to content

Commit

Permalink
Update with current byte.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Apr 26, 2018
1 parent 7bb10e1 commit 4fde5d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cheats2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,15 @@ void S9xDisableCheat (SCheat *c)
if (!c->enabled)
return;

c->enabled = false;

if (!Cheat.enabled)
{
c->enabled = false;
return;
}

/* Make sure we restore the up-to-date written byte */
S9xUpdateCheatInMemory (c);
c->enabled = false;

if (c->conditional && !c->cond_true)
return;
Expand Down

0 comments on commit 4fde5d5

Please sign in to comment.