Output leading zeroes.

This commit is contained in:
Brandon Wright 2018-06-03 18:31:29 -05:00
parent 642ce83e47
commit 28332c5789

View File

@ -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;
}