Input Barcode is neither supported by movie recording nor TAS, disable the menu when using them.

This commit is contained in:
owomomo 2020-08-31 23:27:15 +08:00
parent 3945f290d1
commit 8388d4025f
1 changed files with 9 additions and 3 deletions

View File

@ -1201,6 +1201,7 @@ bool FCEU_IsValidUI(EFCEUI ui) {
case FCEUI_CLOSEGAME: case FCEUI_CLOSEGAME:
if (FCEUMOV_Mode(MOVIEMODE_TASEDITOR)) return false; if (FCEUMOV_Mode(MOVIEMODE_TASEDITOR)) return false;
break; break;
case FCEUI_RECORDMOVIE: case FCEUI_RECORDMOVIE:
case FCEUI_PLAYMOVIE: case FCEUI_PLAYMOVIE:
case FCEUI_QUICKSAVE: case FCEUI_QUICKSAVE:
@ -1216,13 +1217,13 @@ bool FCEU_IsValidUI(EFCEUI ui) {
case FCEUI_STOPMOVIE: case FCEUI_STOPMOVIE:
case FCEUI_TOGGLERECORDINGMOVIE: case FCEUI_TOGGLERECORDINGMOVIE:
return(FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD | MOVIEMODE_FINISHED)); return FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD | MOVIEMODE_FINISHED);
case FCEUI_PLAYFROMBEGINNING: case FCEUI_PLAYFROMBEGINNING:
return(FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD | MOVIEMODE_TASEDITOR | MOVIEMODE_FINISHED)); return FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD | MOVIEMODE_TASEDITOR | MOVIEMODE_FINISHED);
case FCEUI_TRUNCATEMOVIE: case FCEUI_TRUNCATEMOVIE:
return(FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD)); return FCEUMOV_Mode(MOVIEMODE_PLAY | MOVIEMODE_RECORD);
case FCEUI_STOPAVI: case FCEUI_STOPAVI:
return FCEUI_AviIsRecording(); return FCEUI_AviIsRecording();
@ -1243,7 +1244,12 @@ bool FCEU_IsValidUI(EFCEUI ui) {
#endif #endif
if (!FCEUMOV_Mode(MOVIEMODE_INACTIVE)) return false; if (!FCEUMOV_Mode(MOVIEMODE_INACTIVE)) return false;
break; break;
case FCEUI_INPUT_BARCODE:
if (!GameInfo) return false;
if (!FCEUMOV_Mode(MOVIEMODE_INACTIVE)) return false;
} }
return true; return true;
} }