From 28332c57897c3932080b230955e82bb657c3ed79 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sun, 3 Jun 2018 18:31:29 -0500 Subject: [PATCH] Output leading zeroes. --- cheats2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheats2.cpp b/cheats2.cpp index 64981b31..27b8c094 100644 --- a/cheats2.cpp +++ b/cheats2.cpp @@ -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; }