aboutsummaryrefslogtreecommitdiff
path: root/source/cheats.c
diff options
context:
space:
mode:
authorJoão Silva2017-02-12 22:16:10 +0000
committerJoão Silva2017-02-12 22:16:10 +0000
commitc3fadd966ae2a65a683d6cc0b07a26c2980f6bbd (patch)
tree34346e131ec88be8715ceb44b1c984de44d6f8e9 /source/cheats.c
parentfb2517282da2fdfc26e58207bbb8e0a8bca35be2 (diff)
downloadsnes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.tar.gz
snes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.tar.bz2
snes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.zip
Fixed stupid mistake that broke some games. Other minor changes.
Diffstat (limited to 'source/cheats.c')
-rw-r--r--source/cheats.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/cheats.c b/source/cheats.c
index 5856769..7ddcbfb 100644
--- a/source/cheats.c
+++ b/source/cheats.c
@@ -14,15 +14,14 @@ static bool S9xAllHex(const char* code, int32_t len)
int32_t 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'))
+ (code [i] < 'a' || code [i] > 'f') &&
+ (code [i] < 'A' || code [i] > 'F'))
return (false);
return (true);
}
-const char* S9xProActionReplayToRaw(const char* code, uint32_t* address,
- uint8_t* byte)
+const char* S9xProActionReplayToRaw(const char* code, uint32_t* address, uint8_t* byte)
{
uint32_t data = 0;
if (strlen(code) != 8 || !S9xAllHex(code, 8) ||