Skip to content

Commit

Permalink
Enable perfcnt if saved in conf (#17544)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Feb 9, 2025
1 parent d34cfcd commit ad72af9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -3735,6 +3735,14 @@ static bool config_load_file(global_t *global,
}
#endif

/* Special case for perfcnt_enable */
{
bool tmp = false;
config_get_bool(conf, "perfcnt_enable", &tmp);
if (tmp)
retroarch_ctl(RARCH_CTL_SET_PERFCNT_ENABLE, NULL);
}

/* Overrides */

if (rarch_flags & RARCH_FLAGS_HAS_SET_USERNAME)
Expand Down

0 comments on commit ad72af9

Please sign in to comment.