frame advance after each fds command to protect user from doing something to the rom which can't be recorded (only one select command can be recorded per frame)

This commit is contained in:
zeromus 2009-08-03 23:43:31 +00:00
parent 9813608af3
commit 7c7307e43a
1 changed files with 10 additions and 2 deletions

View File

@ -148,7 +148,11 @@ static void FDSInit(void)
void FCEU_FDSInsert(void)
{
FCEUMOV_AddCommand(FCEUNPCMD_FDSINSERT);
if(FCEUI_EmulationPaused()) EmulationPaused |= 2;
if(FCEUMOV_Mode(MOVIEMODE_RECORD))
FCEUMOV_AddCommand(FCEUNPCMD_FDSINSERT);
if(TotalSides==0)
{
FCEU_DispMessage("Not FDS; can't eject disk.");
@ -173,7 +177,11 @@ InDisk=255;
*/
void FCEU_FDSSelect(void)
{
FCEUMOV_AddCommand(FCEUNPCMD_FDSSELECT);
if(FCEUI_EmulationPaused()) EmulationPaused |= 2;
if(FCEUMOV_Mode(MOVIEMODE_RECORD))
FCEUMOV_AddCommand(FCEUNPCMD_FDSSELECT);
if(TotalSides==0)
{
FCEU_DispMessage("Not FDS; can't select disk.");