Simplify init_content_file_set_attribs

This commit is contained in:
twinaphex 2016-01-19 17:27:02 +01:00
parent 86906cf5e3
commit ddc3959e42

View File

@ -654,17 +654,22 @@ static void init_content_file_set_attribs(
}
else
{
char *fullpath = NULL;
settings_t *settings = config_get_ptr();
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
attr->i = system->info.block_extract;
attr->i |= system->info.need_fullpath << 1;
attr->i |= (!system->no_content) << 2;
string_list_append(content,
(global->inited.core.no_content
&& settings->core.set_supports_no_game_enable) ? "" : fullpath, *attr);
if (global->inited.core.no_content
&& settings->core.set_supports_no_game_enable)
string_list_append(content, "", *attr);
else
{
char *fullpath = NULL;
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
string_list_append(content, fullpath, *attr);
}
}
}