RA Leaderboards: Restore original var.c

This commit is contained in:
celerizer 2017-11-12 17:06:43 -06:00 committed by GitHub
parent 6db4bd2d8a
commit 3519e4e16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}