mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
don't test cheevos if there are none
This commit is contained in:
parent
181fae83eb
commit
fe79269133
@ -1269,8 +1269,11 @@ static void cheevos_test_cheevo_set(const cheevoset_t *set)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cheevos_test(void)
|
void cheevos_test(void)
|
||||||
|
{
|
||||||
|
if (cheevos_locals.loaded)
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (settings->cheevos.enable && !cheevos_globals.cheats_are_enabled && !cheevos_globals.cheats_were_enabled)
|
if (settings->cheevos.enable && !cheevos_globals.cheats_are_enabled && !cheevos_globals.cheats_were_enabled)
|
||||||
{
|
{
|
||||||
cheevos_test_cheevo_set(&cheevos_locals.core);
|
cheevos_test_cheevo_set(&cheevos_locals.core);
|
||||||
@ -1279,6 +1282,7 @@ void cheevos_test(void)
|
|||||||
cheevos_test_cheevo_set(&cheevos_locals.unofficial);
|
cheevos_test_cheevo_set(&cheevos_locals.unofficial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
Free the loaded achievements.
|
Free the loaded achievements.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user