Skip to content

Commit

Permalink
RA Leaderboards: Restore original var.c
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer authored Nov 12, 2017
1 parent 6db4bd2 commit 3519e4e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cheevos/var.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -416,4 +408,3 @@ unsigned cheevos_var_get_value(cheevos_var_t* var)

return value;
}

0 comments on commit 3519e4e

Please sign in to comment.