mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Don't load favorites/history playlist if size is 0 (#16260)
This commit is contained in:
parent
50f4807f88
commit
8f1678f865
@ -4086,7 +4086,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
|
||||
command_event(CMD_EVENT_HISTORY_DEINIT, NULL);
|
||||
|
||||
if (!history_list_enable)
|
||||
if (!history_list_enable || !playlist_config.capacity)
|
||||
return false;
|
||||
|
||||
_msg = msg_hash_to_str(MSG_LOADING_HISTORY_FILE);
|
||||
@ -8319,6 +8319,9 @@ void retroarch_favorites_init(void)
|
||||
|
||||
retroarch_favorites_deinit();
|
||||
|
||||
if (!playlist_config.capacity)
|
||||
return;
|
||||
|
||||
RARCH_LOG("[Playlist]: %s: \"%s\".\n",
|
||||
msg_hash_to_str(MSG_LOADING_FAVORITES_FILE),
|
||||
path_content_favorites);
|
||||
|
Loading…
x
Reference in New Issue
Block a user