mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
(configuration/paths) Simplify some code
This commit is contained in:
parent
0909c80138
commit
b63fa7b94b
@ -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",
|
||||
|
5
paths.c
5
paths.c
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user