mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 13:20:52 +00:00
Music history list no longer tied to HAVE_FFMPEG
This commit is contained in:
parent
9438545bca
commit
8e2753cc53
15
command.c
15
command.c
@ -1953,6 +1953,13 @@ bool command_event(enum event_command cmd, void *data)
|
||||
}
|
||||
g_defaults.content_history = NULL;
|
||||
|
||||
if (g_defaults.music_history)
|
||||
{
|
||||
playlist_write_file(g_defaults.music_history);
|
||||
playlist_free(g_defaults.music_history);
|
||||
}
|
||||
g_defaults.music_history = NULL;
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
if (g_defaults.video_history)
|
||||
{
|
||||
@ -1961,12 +1968,6 @@ bool command_event(enum event_command cmd, void *data)
|
||||
}
|
||||
g_defaults.video_history = NULL;
|
||||
|
||||
if (g_defaults.music_history)
|
||||
{
|
||||
playlist_write_file(g_defaults.music_history);
|
||||
playlist_free(g_defaults.music_history);
|
||||
}
|
||||
g_defaults.music_history = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
@ -1995,7 +1996,6 @@ bool command_event(enum event_command cmd, void *data)
|
||||
settings->paths.path_content_history,
|
||||
content_history_size);
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
RARCH_LOG("%s: [%s].\n",
|
||||
msg_hash_to_str(MSG_LOADING_HISTORY_FILE),
|
||||
settings->paths.path_content_music_history);
|
||||
@ -2003,6 +2003,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
settings->paths.path_content_music_history,
|
||||
content_history_size);
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
RARCH_LOG("%s: [%s].\n",
|
||||
msg_hash_to_str(MSG_LOADING_HISTORY_FILE),
|
||||
settings->paths.path_content_video_history);
|
||||
|
@ -105,9 +105,9 @@ struct defaults
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
playlist_t *image_history;
|
||||
#endif
|
||||
playlist_t *music_history;
|
||||
#ifdef HAVE_FFMPEG
|
||||
playlist_t *video_history;
|
||||
playlist_t *music_history;
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user