void retro_cheat_set(unsigned index, bool enabled, const char *code)
{
patch pt;
- int array_len = 0;
+ int array_len = PicoPatchCount;
char codeCopy[256];
char *buff;
bool multiline=0;
while (buff != NULL)
{
+ log_cb(RETRO_LOG_INFO,"Buff: %s\n",buff);
decode(buff, &pt);
if (pt.addr == (uint32_t) -1 || pt.data == (uint16_t) -1)
{
if (!multiline)
break;
+ buff = strtok(NULL,"+");
}
}