mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
menu_displaylist_parse_playlist - cleanups
This commit is contained in:
parent
70d0bd5092
commit
e7cb5ccdee
@ -816,6 +816,7 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
bool is_rgui = string_is_equal(settings->arrays.menu_driver, "rgui");
|
||||
bool get_runtime = false;
|
||||
bool show_inline_core_name = false;
|
||||
unsigned pl_sublabel_runtime_type = settings->uints.playlist_sublabel_runtime_type;
|
||||
|
||||
label_spacer[0] = '\0';
|
||||
|
||||
@ -823,9 +824,9 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
goto error;
|
||||
|
||||
/* Check whether runtime logging info should be parsed */
|
||||
if (((settings->uints.playlist_sublabel_runtime_type == PLAYLIST_RUNTIME_PER_CORE) &&
|
||||
if (((pl_sublabel_runtime_type == PLAYLIST_RUNTIME_PER_CORE) &&
|
||||
settings->bools.content_runtime_log) ||
|
||||
((settings->uints.playlist_sublabel_runtime_type == PLAYLIST_RUNTIME_AGGREGATE) &&
|
||||
((pl_sublabel_runtime_type == PLAYLIST_RUNTIME_AGGREGATE) &&
|
||||
settings->bools.content_runtime_log_aggregate))
|
||||
{
|
||||
/* Runtime logging is valid for every type of playlist *apart from*
|
||||
@ -893,9 +894,8 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
/* Extract any available runtime values, if required */
|
||||
if (get_runtime)
|
||||
{
|
||||
runtime_log_t *runtime_log = NULL;
|
||||
runtime_log = runtime_log_init(entry->path, entry->core_path,
|
||||
settings->uints.playlist_sublabel_runtime_type == PLAYLIST_RUNTIME_PER_CORE);
|
||||
runtime_log_t *runtime_log = runtime_log_init(entry->path, entry->core_path,
|
||||
pl_sublabel_runtime_type == PLAYLIST_RUNTIME_PER_CORE);
|
||||
|
||||
if (runtime_log)
|
||||
{
|
||||
@ -3303,14 +3303,14 @@ static void menu_displaylist_parse_playlist_generic(
|
||||
|
||||
playlist = playlist_get_cached();
|
||||
|
||||
if (playlist)
|
||||
{
|
||||
if (!playlist)
|
||||
return;
|
||||
|
||||
if (sort)
|
||||
playlist_qsort(playlist);
|
||||
|
||||
*ret = menu_displaylist_parse_playlist(info,
|
||||
playlist, playlist_name, is_collection);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_NETWORKING
|
||||
|
Loading…
x
Reference in New Issue
Block a user