mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
configuration.c - fix unchecked return value
This commit is contained in:
parent
a1034716e1
commit
d6a36f3768
@ -1673,15 +1673,17 @@ static bool config_load_file(const char *path, bool set_defaults)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
bool tmp_bool;
|
bool tmp_bool = false;
|
||||||
char tmp[64] = {0};
|
char tmp[64] = {0};
|
||||||
strlcpy(tmp, "perfcnt_enable", sizeof(tmp));
|
|
||||||
config_get_bool(conf, tmp, &tmp_bool);
|
|
||||||
|
|
||||||
if (tmp_bool)
|
strlcpy(tmp, "perfcnt_enable", sizeof(tmp));
|
||||||
runloop_ctl(RUNLOOP_CTL_SET_PERFCNT_ENABLE, NULL);
|
if (config_get_bool(conf, tmp, &tmp_bool))
|
||||||
else
|
{
|
||||||
runloop_ctl(RUNLOOP_CTL_UNSET_PERFCNT_ENABLE, NULL);
|
if (tmp_bool)
|
||||||
|
runloop_ctl(RUNLOOP_CTL_SET_PERFCNT_ENABLE, NULL);
|
||||||
|
else
|
||||||
|
runloop_ctl(RUNLOOP_CTL_UNSET_PERFCNT_ENABLE, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user