Merge pull request #96 from orbea/zlib
[pcsx_rearmed.git] / frontend / libretro.c
index 0c0ed3e..659b3ce 100644 (file)
@@ -41,7 +41,6 @@
 
 #define ISHEXDEC ((buf[cursor]>='0') && (buf[cursor]<='9')) || ((buf[cursor]>='a') && (buf[cursor]<='f')) || ((buf[cursor]>='A') && (buf[cursor]<='F'))
 
-
 //hack to prevent retroarch freezing when reseting in the menu but not while running with the hot key
 int rebootemu = 0;
 
@@ -801,7 +800,7 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
                ret = AddCheat("", buf);
 
        if (ret != 0)
-               SysPrintf("Failed to set cheat %#u: %s\n", index, code);
+               SysPrintf("Failed to set cheat %#u\n", index);
        else if (index < NumCheats)
                Cheats[index].Enabled = enabled;
 }
@@ -1012,6 +1011,9 @@ strcasestr(const char *s, const char*find)
 
 bool retro_load_game(const struct retro_game_info *info)
 {
+       if (!info)
+          return false;
+
        size_t i;
        bool is_m3u = (strcasestr(info->path, ".m3u") != NULL);