Merge pull request #3929 from leiradel/master

Fix some achievements for NES.
This commit is contained in:
Twinaphex 2016-11-03 21:19:57 +01:00 committed by GitHub
commit f4ab4c2975

View File

@ -930,7 +930,11 @@ void cheevos_parse_guest_addr(cheevos_var_t *var, unsigned value)
break;
}
var->value -= cheevos_locals.meminfo[i].size;
/* HACK subtract the correct ammount of bytes to reach the save RAM */
if (i == 0 && cheevos_locals.console_id == CHEEVOS_CONSOLE_NINTENDO)
var->value -= 0x6000;
else
var->value -= cheevos_locals.meminfo[i].size;
}
}
}