Fix logs
This commit is contained in:
@@ -1986,23 +1986,23 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
|
|||||||
if ((strlen(codepart) == 7) && (codepart[4]==':'))
|
if ((strlen(codepart) == 7) && (codepart[4]==':'))
|
||||||
{
|
{
|
||||||
/* raw code in xxxx:xx format */
|
/* raw code in xxxx:xx format */
|
||||||
|
log_cb.log(RETRO_LOG_DEBUG, "Cheat code added: '%s' (Raw)\n", codepart);
|
||||||
codepart[4] = '\0';
|
codepart[4] = '\0';
|
||||||
a = strtoul(codepart, NULL, 16);
|
a = strtoul(codepart, NULL, 16);
|
||||||
v = strtoul(codepart + 5, NULL, 16);
|
v = strtoul(codepart + 5, NULL, 16);
|
||||||
c = -1;
|
c = -1;
|
||||||
FCEUI_AddCheat(name, a, v, c, type);
|
FCEUI_AddCheat(name, a, v, c, type);
|
||||||
log_cb.log(RETRO_LOG_DEBUG, "Cheat code added: '%s' (Raw)\n", codepart);
|
|
||||||
}
|
}
|
||||||
else if ((strlen(codepart) == 10) && (codepart[4] == '?') && (codepart[7] == ':'))
|
else if ((strlen(codepart) == 10) && (codepart[4] == '?') && (codepart[7] == ':'))
|
||||||
{
|
{
|
||||||
/* raw code in xxxx?xx:xx */
|
/* raw code in xxxx?xx:xx */
|
||||||
|
log_cb.log(RETRO_LOG_DEBUG, "Cheat code added: '%s' (Raw)\n", codepart);
|
||||||
codepart[4] = '\0';
|
codepart[4] = '\0';
|
||||||
codepart[7] = '\0';
|
codepart[7] = '\0';
|
||||||
a = strtoul(codepart, NULL, 16);
|
a = strtoul(codepart, NULL, 16);
|
||||||
v = strtoul(codepart + 8, NULL, 16);
|
v = strtoul(codepart + 8, NULL, 16);
|
||||||
c = strtoul(codepart + 5, NULL, 16);
|
c = strtoul(codepart + 5, NULL, 16);
|
||||||
FCEUI_AddCheat(name, a, v, c, type);
|
FCEUI_AddCheat(name, a, v, c, type);
|
||||||
log_cb.log(RETRO_LOG_DEBUG, "Cheat code added: '%s' (Raw)\n", codepart);
|
|
||||||
}
|
}
|
||||||
else if (FCEUI_DecodeGG(codepart, &a, &v, &c))
|
else if (FCEUI_DecodeGG(codepart, &a, &v, &c))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user