This commit is contained in:
twinaphex 2017-11-25 22:33:43 +01:00
parent bf8cfe4123
commit ca616f3e32

View File

@ -158,12 +158,13 @@ static void task_screenshot_handler(retro_task_t *task)
#endif
#ifdef HAVE_IMAGEVIEWER
if (ret && !state->silence)
if ( ret &&
!state->silence &&
state->history_list_enable &&
g_defaults.image_history
)
{
if (
state->history_list_enable
&& g_defaults.image_history
&& playlist_push(
if (playlist_push(
g_defaults.image_history,
state->filename,
NULL,
@ -171,8 +172,7 @@ static void task_screenshot_handler(retro_task_t *task)
"imageviewer",
NULL,
NULL
)
)
))
playlist_write_file(g_defaults.image_history);
}
#endif