mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Simplify init_content_file_set_attribs
This commit is contained in:
parent
86906cf5e3
commit
ddc3959e42
17
content.c
17
content.c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user