diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 5d0d4ec9..3c9ded8f 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -27,6 +27,7 @@ #include "sdl-video.h" #include "../common/cheat.h" +#include "../../movie.h" #include "../../fceu.h" @@ -356,7 +357,7 @@ GetMouseData(uint32 *d) uint32 t; // Don't get input when a movie is playing back - if(FCEUI_IsMovieActive() < 0) + if(FCEUMOV_Mode(MOVIEMODE_PLAY)) return; // retrieve the state of the mouse from SDL @@ -513,7 +514,7 @@ static void UpdateGamepad(void) { // don't update during movie playback - if(FCEUI_IsMovieActive() < 0) { + if(FCEUMOV_Mode(MOVIEMODE_PLAY)) { return; } @@ -577,7 +578,7 @@ static uint32 UpdatePPadData(int w) { // don't update if a movie is playing - if(FCEUI_IsMovieActive() < 0) { + if(FCEUMOV_Mode(MOVIEMODE_PLAY)) { return 0; } diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index a3818ce7..19374657 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -559,7 +559,7 @@ DUMMY(FCEUD_AviRecordTo) DUMMY(FCEUD_AviStop) void FCEUI_AviVideoUpdate(const unsigned char* buffer) { } int FCEUD_ShowStatusIcon(void) {return 0;} -int FCEUI_AviIsRecording(void) {return 0;} +bool FCEUI_AviIsRecording(void) {return false;} void FCEUI_UseInputPreset(int preset) { } bool FCEUD_PauseAfterPlayback() { return false; } bool moviePleaseLogSavestates = false;