Don't load favorites/history playlist if size is 0 (#16260)

This commit is contained in:
sonninnos 2024-02-19 21:12:18 +02:00 committed by GitHub
parent 50f4807f88
commit 8f1678f865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);