X-Git-Url: http://git.maemo.org/git/?p=drnoksnes;a=blobdiff_plain;f=cheats.cpp;h=b055ed4db90c1f9bd4cf463f9e887fe8bbda4ead;hp=3ea9d051c8ee14ce084cb82a5d296bfa8a5e8084;hb=HEAD;hpb=909f5635bffc4c3516ddbba4f9c63c2a7333afc7 diff --git a/cheats.cpp b/cheats.cpp index 3ea9d05..b055ed4 100644 --- a/cheats.cpp +++ b/cheats.cpp @@ -98,7 +98,7 @@ const char *S9xGoldFingerToRaw (const char *code, uint32 &address, bool8 &sram, const char *S9xGameGenieToRaw (const char *code, uint32 &address, uint8 &byte) { char new_code [12]; - + if (strlen (code) != 9 || *(code + 4) != '-' || !S9xAllHex (code, 4) || !S9xAllHex (code + 5, 4)) return ("Invalid Game Genie(tm) code - should be 'xxxx-xxxx'."); @@ -109,7 +109,7 @@ const char *S9xGameGenieToRaw (const char *code, uint32 &address, uint8 &byte) static const char *real_hex = "0123456789ABCDEF"; static const char *genie_hex = "DF4709156BC8A23E"; - + for (int i = 2; i < 10; i++) { if (islower (new_code [i]))