Skip to content

Commit

Permalink
Don't load favorites/history playlist if size is 0 (#16260)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Feb 19, 2024
1 parent 50f4807 commit 8f1678f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8f1678f

Please sign in to comment.