mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #10633 from jdgleaver/cheevos-disable
Don't perform unnecessary cheevos initialisation when cheevos are disabled
This commit is contained in:
commit
c31d4e6b69
@ -2921,11 +2921,13 @@ bool rcheevos_load(const void *data)
|
||||
retro_task_t *task = NULL;
|
||||
const struct retro_game_info *info = NULL;
|
||||
rcheevos_coro_t *coro = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool cheevos_enable = settings && settings->bools.cheevos_enable;
|
||||
|
||||
rcheevos_loaded = false;
|
||||
rcheevos_hardcore_paused = false;
|
||||
|
||||
if (!rcheevos_locals.core_supports || !data)
|
||||
if (!cheevos_enable || !rcheevos_locals.core_supports || !data)
|
||||
{
|
||||
rcheevos_hardcore_paused = true;
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user