Output leading zeroes.

This commit is contained in:
Brandon Wright 2018-06-03 18:31:29 -05:00
parent 642ce83e47
commit 28332c5789
1 changed files with 2 additions and 2 deletions

View File

@ -635,9 +635,9 @@ char *S9xCheatToText (SCheat *c)
text = new char[size]; text = new char[size];
if (c->conditional) 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 else
snprintf (text, size, "%x=%x", c->address, c->byte); snprintf (text, size, "%06x=%02x", c->address, c->byte);
return text; return text;
} }