Output leading zeroes.
This commit is contained in:
parent
642ce83e47
commit
28332c5789
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user