#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;
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;
}
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);