(configuration/paths) Simplify some code

This commit is contained in:
twinaphex 2019-04-21 05:05:44 +02:00
parent 0909c80138
commit b63fa7b94b
2 changed files with 3 additions and 5 deletions

View File

@ -3880,9 +3880,6 @@ static void parse_config_file(void)
if (path_is_empty(RARCH_PATH_CONFIG))
{
RARCH_LOG("[config] Loading default config.\n");
if (!path_is_empty(RARCH_PATH_CONFIG))
RARCH_LOG("[config] found default config: %s.\n",
path_get(RARCH_PATH_CONFIG));
}
RARCH_LOG("[config] loading config from: %s.\n",

View File

@ -308,8 +308,9 @@ static bool path_init_subsystem(void)
const struct retro_subsystem_info *info = NULL;
global_t *global = global_get_ptr();
rarch_system_info_t *system = runloop_get_system_info();
bool subsystem_path_empty = path_is_empty(RARCH_PATH_SUBSYSTEM);
if (!system || path_is_empty(RARCH_PATH_SUBSYSTEM))
if (!system || subsystem_path_empty)
return false;
/* For subsystems, we know exactly which RAM types are supported. */
@ -322,7 +323,7 @@ static bool path_init_subsystem(void)
if (info)
{
unsigned num_content = MIN(info->num_roms,
path_is_empty(RARCH_PATH_SUBSYSTEM) ?
subsystem_path_empty ?
0 : (unsigned)subsystem_fullpaths->size);
for (i = 0; i < num_content; i++)