Merge pull request #3048 from diablodiab/fix_RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME

Allow cores that do not need content to still start with content if given
This commit is contained in:
Twinaphex 2016-05-30 00:26:21 +02:00
commit 9e9cc3835f

View File

@ -1368,13 +1368,15 @@ static bool init_content_file_set_attribs(
attr.i |= system->info.need_fullpath << 1;
attr.i |= (!content_does_not_need_content()) << 2;
if (content_does_not_need_content()
char *fullpath = NULL;
if (!runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath)
&& content_does_not_need_content()
&& settings->set_supports_no_game_enable)
string_list_append(content, "", attr);
else
{
char *fullpath = NULL;
if (runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath))
if(fullpath)
string_list_append(content, fullpath, attr);
}
}