Don't push screenshot to image history if we are just saving

a state
This commit is contained in:
twinaphex 2016-12-11 10:34:12 +01:00
parent 15c63c3de9
commit a5a594f619

View File

@ -74,6 +74,7 @@ typedef struct
unsigned height;
int pitch;
bool bgr24;
bool silence;
void *userbuf;
} screenshot_task_state_t;
@ -152,7 +153,7 @@ static void task_screenshot_handler(retro_task_t *task)
#endif
#ifdef HAVE_IMAGEVIEWER
if (ret)
if (ret && !state->silence)
if (content_push_to_history_playlist(g_defaults.image_history,
state->filename,
"imageviewer", "builtin"))
@ -192,6 +193,7 @@ static bool screenshot_dump(
state->pitch = pitch;
state->frame = frame;
state->userbuf = userbuf;
state->silence = savestate;
if (savestate)
{