From d399088e17a0f35797a024e830c5fec3faa299f8 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 7 Apr 2013 00:01:16 +0200 Subject: [PATCH] Don't add redundant checking. config_file_t doesn't overwrite buffer if config is not found. --- settings.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/settings.c b/settings.c index e31685cf25..b9f86cc008 100644 --- a/settings.c +++ b/settings.c @@ -442,12 +442,7 @@ bool config_load_file(const char *path) CONFIG_GET_BOOL(video.aspect_ratio_auto, "video_aspect_ratio_auto"); CONFIG_GET_FLOAT(video.refresh_rate, "video_refresh_rate"); - if (config_get_path(conf, "video_cg_shader", tmp_str, sizeof(tmp_str))) - { - if (strlen(tmp_str) > 0) - strlcpy(g_settings.video.cg_shader_path, tmp_str, sizeof(g_settings.video.cg_shader_path)); - } - + CONFIG_GET_PATH(video.cg_shader, "video_cg_shader"); CONFIG_GET_PATH(video.xml_shader_path, "video_xml_shader"); CONFIG_GET_BOOL(video.allow_rotate, "video_allow_rotate");