Some C89 buildfixes
This commit is contained in:
parent
7c1d3991f8
commit
ab936adf1c
|
@ -1372,9 +1372,7 @@ static void cheevos_free_condition(cheevos_condition_t* condition)
|
||||||
if (condition->condsets)
|
if (condition->condsets)
|
||||||
{
|
{
|
||||||
for (i = 0; i < condition->count; i++)
|
for (i = 0; i < condition->count; i++)
|
||||||
{
|
|
||||||
free((void*)condition->condsets[i].conds);
|
free((void*)condition->condsets[i].conds);
|
||||||
}
|
|
||||||
|
|
||||||
free((void*)condition->condsets);
|
free((void*)condition->condsets);
|
||||||
}
|
}
|
||||||
|
@ -2652,17 +2650,18 @@ bool cheevos_toggle_hardcore_mode(void)
|
||||||
|
|
||||||
static void cheevos_patch_addresses(cheevoset_t* set)
|
static void cheevos_patch_addresses(cheevoset_t* set)
|
||||||
{
|
{
|
||||||
|
unsigned i, j, k;
|
||||||
cheevo_t* cheevo = set->cheevos;
|
cheevo_t* cheevo = set->cheevos;
|
||||||
|
|
||||||
for (unsigned i = set->count; i != 0; i--, cheevo++)
|
for (i = set->count; i != 0; i--, cheevo++)
|
||||||
{
|
{
|
||||||
cheevos_condset_t* condset = cheevo->condition.condsets;
|
cheevos_condset_t* condset = cheevo->condition.condsets;
|
||||||
|
|
||||||
for (unsigned j = cheevo->condition.count; j != 0; j--, condset++)
|
for (j = cheevo->condition.count; j != 0; j--, condset++)
|
||||||
{
|
{
|
||||||
cheevos_cond_t* cond = condset->conds;
|
cheevos_cond_t* cond = condset->conds;
|
||||||
|
|
||||||
for (unsigned k = condset->count; k != 0; k--, cond++)
|
for (k = condset->count; k != 0; k--, cond++)
|
||||||
{
|
{
|
||||||
switch (cond->source.type)
|
switch (cond->source.type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue