Fix typpo; parse constant values in leaderboards

This commit is contained in:
Andre Leiradella 2017-02-05 17:00:07 +00:00
parent b5153ced9d
commit bfcb8227f5

View File

@ -447,7 +447,7 @@ static void cheevos_add_uint(char** aux, size_t* left, unsigned v)
cheevos_add_string(aux, left, buffer); cheevos_add_string(aux, left, buffer);
} }
static void cheevos_add_uint(char** aux, size_t* left, int v) static void cheevos_add_int(char** aux, size_t* left, int v)
{ {
char buffer[32]; char buffer[32];
@ -1158,7 +1158,12 @@ static void cheevos_parse_var(cheevos_var_t *var, const char **memaddr)
if (toupper(*str) == 'H') if (toupper(*str) == 'H')
str++; str++;
else else
{
if (toupper(*str) == 'V')
str++;
base = 10; base = 10;
}
} }
if (var->type != CHEEVOS_VAR_TYPE_VALUE_COMP) if (var->type != CHEEVOS_VAR_TYPE_VALUE_COMP)