mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(configuration.c) Cleanups
This commit is contained in:
parent
7ee5b187f9
commit
143c333343
@ -3585,7 +3585,6 @@ static bool config_load_shader_preset_internal(
|
|||||||
{
|
{
|
||||||
unsigned idx;
|
unsigned idx;
|
||||||
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
|
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
|
||||||
bool ret = false;
|
|
||||||
char *shader_path = (char*)malloc(path_size);
|
char *shader_path = (char*)malloc(path_size);
|
||||||
|
|
||||||
shader_path[0] = '\0';
|
shader_path[0] = '\0';
|
||||||
@ -3609,13 +3608,13 @@ static bool config_load_shader_preset_internal(
|
|||||||
RARCH_LOG("[Shaders]: Specific shader preset found at %s.\n",
|
RARCH_LOG("[Shaders]: Specific shader preset found at %s.\n",
|
||||||
shader_path);
|
shader_path);
|
||||||
retroarch_set_shader_preset(shader_path);
|
retroarch_set_shader_preset(shader_path);
|
||||||
ret = true;
|
free(shader_path);
|
||||||
break;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(shader_path);
|
free(shader_path);
|
||||||
|
|
||||||
return ret;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4019,10 +4018,8 @@ bool config_save_file(const char *path)
|
|||||||
|
|
||||||
/* Verbosity isn't in bool_settings since it needs to be loaded differently */
|
/* Verbosity isn't in bool_settings since it needs to be loaded differently */
|
||||||
if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL))
|
if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL))
|
||||||
{
|
|
||||||
config_set_bool(conf, "log_verbosity",
|
config_set_bool(conf, "log_verbosity",
|
||||||
verbosity_is_enabled());
|
verbosity_is_enabled());
|
||||||
}
|
|
||||||
config_set_bool(conf, "perfcnt_enable",
|
config_set_bool(conf, "perfcnt_enable",
|
||||||
rarch_ctl(RARCH_CTL_IS_PERFCNT_ENABLE, NULL));
|
rarch_ctl(RARCH_CTL_IS_PERFCNT_ENABLE, NULL));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user