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