completely remove paletted color support
[drnoksnes] / cheats.cpp
index 29dee60..b055ed4 100644 (file)
@@ -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'.");
@@ -107,9 +107,9 @@ const char *S9xGameGenieToRaw (const char *code, uint32 &address, uint8 &byte)
     strncpy (new_code + 2, code, 4);
     strcpy (new_code + 6, code + 5);
 
-    static char *real_hex  = "0123456789ABCDEF";
-    static char *genie_hex = "DF4709156BC8A23E";
-    
+    static const char *real_hex  = "0123456789ABCDEF";
+    static const char *genie_hex = "DF4709156BC8A23E";
+
     for (int i = 2; i < 10; i++)
     {
        if (islower (new_code [i]))