diff --git a/cheevos/var.c b/cheevos/var.c index 6610cdef08..2b567bf21e 100644 --- a/cheevos/var.c +++ b/cheevos/var.c @@ -177,14 +177,6 @@ void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console) var->value -= 0x2000; } } - else if (console == CHEEVOS_CONSOLE_ATARI_2600) - { - if (var->value >= 0x0080 && var->value <= 0x00ff) - { - CHEEVOS_LOG(CHEEVOS_TAG "Adjusted physical 2600 address %X, to RAM offset %X\n", var->value, var->value - 0x80); - var->value -= 0x80; - } - } if (system->mmaps.num_descriptors != 0) { @@ -234,7 +226,7 @@ void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console) unsigned addr = var->value; var->bank_id = (int)(desc - system->mmaps.descriptors); var->value = (unsigned)cheevos_var_reduce( - (var->value - desc->core.start) & desc->disconnect_mask, + (addr - desc->core.start) & desc->disconnect_mask, desc->core.disconnect); if (var->value >= desc->core.len) @@ -416,4 +408,3 @@ unsigned cheevos_var_get_value(cheevos_var_t* var) return value; } -