mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Cleanup content_file_init_subsystem
This commit is contained in:
parent
b9602ef57e
commit
bb0c03afff
@ -593,12 +593,6 @@ static const struct retro_subsystem_info *content_file_init_subsystem(
|
|||||||
rarch_system_info_t *sys_info = NULL;
|
rarch_system_info_t *sys_info = NULL;
|
||||||
struct string_list *subsystem = path_get_subsystem_list();
|
struct string_list *subsystem = path_get_subsystem_list();
|
||||||
|
|
||||||
if (path_is_empty(RARCH_PATH_SUBSYSTEM))
|
|
||||||
{
|
|
||||||
*ret = true;
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &sys_info);
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &sys_info);
|
||||||
|
|
||||||
if (!sys_info)
|
if (!sys_info)
|
||||||
@ -711,8 +705,10 @@ static bool content_file_init(struct string_list *temporary_content,
|
|||||||
{
|
{
|
||||||
struct retro_game_info *info = NULL;
|
struct retro_game_info *info = NULL;
|
||||||
struct string_list *content = NULL;
|
struct string_list *content = NULL;
|
||||||
bool ret = false;
|
bool ret = path_is_empty(RARCH_PATH_SUBSYSTEM)
|
||||||
const struct retro_subsystem_info *special = content_file_init_subsystem(content_ctx, &ret);
|
? true : false;
|
||||||
|
const struct retro_subsystem_info *special = path_is_empty(RARCH_PATH_SUBSYSTEM)
|
||||||
|
? NULL : content_file_init_subsystem(content_ctx, &ret);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user