From e92aa458151eb10c61bc967dc82a64fdbc7dfc46 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Thu, 3 Nov 2016 20:16:00 +0000 Subject: [PATCH] Fix some achievements for NES. --- cheevos.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cheevos.c b/cheevos.c index 07f7eabdd3..a391d032fd 100644 --- a/cheevos.c +++ b/cheevos.c @@ -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; } } }