SCP, VIDEO: Properly reject SCREENSHOT command when no devices use sim_video.

This commit is contained in:
Mark Pizzolato 2015-09-17 14:49:10 -07:00
parent 78399f10cb
commit 23e552e9fc

5
scp.c
View file

@ -2605,7 +2605,12 @@ t_stat screenshot_cmd (int32 flag, char *cptr)
{
if ((cptr == NULL) || (strlen (cptr) == 0))
return SCPE_ARG;
#if defined (USE_SIM_VIDEO)
return vid_screenshot (cptr);
#else
sim_printf ("No video device\n");
return SCPE_UNK|SCPE_NOMESSAGE;
#endif
}
/* Echo command */