SDL: implemented disableMovieMessage
This commit is contained in:
parent
8ade067b54
commit
d7ee576c1b
|
@ -189,6 +189,7 @@ InitConfig()
|
||||||
|
|
||||||
// pause movie playback at frame x
|
// pause movie playback at frame x
|
||||||
config->addOption("pauseframe", "SDL.PauseFrame", 0);
|
config->addOption("pauseframe", "SDL.PauseFrame", 0);
|
||||||
|
config->addOption("moviemsg", "SDL.MovieMsg", 1);
|
||||||
|
|
||||||
// overwrite the config file?
|
// overwrite the config file?
|
||||||
config->addOption("no-config", "SDL.NoConfig", 0);
|
config->addOption("no-config", "SDL.NoConfig", 0);
|
||||||
|
|
|
@ -75,10 +75,6 @@ static int s_paletterefresh;
|
||||||
|
|
||||||
extern bool MaxSpeed;
|
extern bool MaxSpeed;
|
||||||
|
|
||||||
bool FCEUI_AviDisableMovieMessages()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Attempts to destroy the graphical video display. Returns 0 on
|
* Attempts to destroy the graphical video display. Returns 0 on
|
||||||
* success, -1 on failure.
|
* success, -1 on failure.
|
||||||
|
@ -724,3 +720,16 @@ PtoV(uint16 x,
|
||||||
y += s_srendline;
|
y += s_srendline;
|
||||||
return (x | (y << 16));
|
return (x | (y << 16));
|
||||||
}
|
}
|
||||||
|
bool disableMovieMessages = false;
|
||||||
|
bool FCEUI_AviDisableMovieMessages()
|
||||||
|
{
|
||||||
|
if (disableMovieMessages)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FCEUI_SetAviDisableMovieMessages(bool disable)
|
||||||
|
{
|
||||||
|
disableMovieMessages = disable;
|
||||||
|
}
|
||||||
|
|
|
@ -4,5 +4,7 @@ uint32 PtoV(uint16 x, uint16 y);
|
||||||
bool FCEUD_ShouldDrawInputAids();
|
bool FCEUD_ShouldDrawInputAids();
|
||||||
bool FCEUI_AviDisableMovieMessages();
|
bool FCEUI_AviDisableMovieMessages();
|
||||||
static SDL_Surface *s_screen;
|
static SDL_Surface *s_screen;
|
||||||
|
bool FCEUI_AviDisableMovieMessages();
|
||||||
|
void FCEUI_SetAviDisableMovieMessages(bool disable);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -606,6 +606,15 @@ SDL_GL_LoadLibrary(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check to see if movie messages are disabled
|
||||||
|
int mm;
|
||||||
|
g_config->getOption("SDL.MovieMsg", &mm);
|
||||||
|
if( mm == 0)
|
||||||
|
FCEUI_SetAviDisableMovieMessages(true);
|
||||||
|
else
|
||||||
|
FCEUI_SetAviDisableMovieMessages(false);
|
||||||
|
|
||||||
|
|
||||||
// check for a .fm2 file to rip the subtitles
|
// check for a .fm2 file to rip the subtitles
|
||||||
g_config->getOption("SDL.RipSubs", &s);
|
g_config->getOption("SDL.RipSubs", &s);
|
||||||
g_config->setOption("SDL.RipSubs", "");
|
g_config->setOption("SDL.RipSubs", "");
|
||||||
|
|
Loading…
Reference in New Issue