This commit is contained in:
twinaphex 2016-09-01 04:40:02 +02:00
parent 90ad365432
commit e60ae0b8de

View File

@ -1780,9 +1780,10 @@ static bool config_load_file(const char *path, bool set_defaults,
/* Array settings */ /* Array settings */
for (i = 0; i < array_settings_size; i++) for (i = 0; i < array_settings_size; i++)
{ {
if (array_settings[i].handle) if (!array_settings[i].handle)
config_get_array(conf, array_settings[i].ident, continue;
array_settings[i].ptr, sizeof(array_settings[i].ptr)); config_get_array(conf, array_settings[i].ident,
array_settings[i].ptr, sizeof(array_settings[i].ptr));
} }
/* Path settings */ /* Path settings */
@ -1790,8 +1791,6 @@ static bool config_load_file(const char *path, bool set_defaults,
{ {
if (!path_settings[i].handle) if (!path_settings[i].handle)
continue; continue;
RARCH_LOG("ident: %s\n", path_settings[i].ident);
if (config_get_path(conf, path_settings[i].ident, tmp_str, sizeof(tmp_str))) if (config_get_path(conf, path_settings[i].ident, tmp_str, sizeof(tmp_str)))
strlcpy(path_settings[i].ptr, tmp_str, sizeof(tmp_str)); strlcpy(path_settings[i].ptr, tmp_str, sizeof(tmp_str));
} }