Skip to content

Commit

Permalink
Output leading zeroes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Jun 3, 2018
1 parent 642ce83 commit 28332c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cheats2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,9 @@ char *S9xCheatToText (SCheat *c)
text = new char[size];

if (c->conditional)
snprintf (text, size, "%x=%x?%x", c->address, c->cond_byte, c->byte);
snprintf (text, size, "%06x=%02x?%02x", c->address, c->cond_byte, c->byte);
else
snprintf (text, size, "%x=%x", c->address, c->byte);
snprintf (text, size, "%06x=%02x", c->address, c->byte);

return text;
}
Expand Down

0 comments on commit 28332c5

Please sign in to comment.