Don't push screenshot to image history if we are just saving
a state
This commit is contained in:
parent
15c63c3de9
commit
a5a594f619
|
@ -74,6 +74,7 @@ typedef struct
|
||||||
unsigned height;
|
unsigned height;
|
||||||
int pitch;
|
int pitch;
|
||||||
bool bgr24;
|
bool bgr24;
|
||||||
|
bool silence;
|
||||||
void *userbuf;
|
void *userbuf;
|
||||||
} screenshot_task_state_t;
|
} screenshot_task_state_t;
|
||||||
|
|
||||||
|
@ -152,7 +153,7 @@ static void task_screenshot_handler(retro_task_t *task)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_IMAGEVIEWER
|
#ifdef HAVE_IMAGEVIEWER
|
||||||
if (ret)
|
if (ret && !state->silence)
|
||||||
if (content_push_to_history_playlist(g_defaults.image_history,
|
if (content_push_to_history_playlist(g_defaults.image_history,
|
||||||
state->filename,
|
state->filename,
|
||||||
"imageviewer", "builtin"))
|
"imageviewer", "builtin"))
|
||||||
|
@ -192,6 +193,7 @@ static bool screenshot_dump(
|
||||||
state->pitch = pitch;
|
state->pitch = pitch;
|
||||||
state->frame = frame;
|
state->frame = frame;
|
||||||
state->userbuf = userbuf;
|
state->userbuf = userbuf;
|
||||||
|
state->silence = savestate;
|
||||||
|
|
||||||
if (savestate)
|
if (savestate)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue