diff options
author | aliaspider | 2014-10-29 06:47:46 +0100 |
---|---|---|
committer | aliaspider | 2014-10-29 06:47:46 +0100 |
commit | 761d752569b9bad6bdb755e91ca9e345cfb2788d (patch) | |
tree | 5eaa11c172c08039757d6bee1a3641e051462d3a /source/cheats.c | |
parent | a6dc7abc9b8cc3986eda5a84141da7dc9e4e8f1a (diff) | |
download | snes9x2005-761d752569b9bad6bdb755e91ca9e345cfb2788d.tar.gz snes9x2005-761d752569b9bad6bdb755e91ca9e345cfb2788d.tar.bz2 snes9x2005-761d752569b9bad6bdb755e91ca9e345cfb2788d.zip |
C++ cleanups. (in progress)
Diffstat (limited to 'source/cheats.c')
-rw-r--r-- | source/cheats.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cheats.c b/source/cheats.c index 9c4a8f2..060d2ba 100644 --- a/source/cheats.c +++ b/source/cheats.c @@ -95,7 +95,8 @@ static bool8 S9xAllHex (const char *code, int len) { - for (int i = 0; i < len; i++) + int i; + for (i = 0; i < len; i++) if ((code [i] < '0' || code [i] > '9') && (code [i] < 'a' || code [i] > 'f') && (code [i] < 'A' || code [i] > 'F')) @@ -158,7 +159,8 @@ const char *S9xGameGenieToRaw (const char *code, uint32 *address, uint8 *byte) static char *real_hex = "0123456789ABCDEF"; static char *genie_hex = "DF4709156BC8A23E"; - for (int i = 2; i < 10; i++) + int i; + for (i = 2; i < 10; i++) { if (islower (new_code [i])) new_code [i] = toupper (new_code [i]); |