Added missing settings from Qt movie options window to saved config.
This commit is contained in:
parent
fa84da706f
commit
3f4a7f55d5
|
@ -193,21 +193,29 @@ void MovieOptionsDialog_t::closeWindow(void)
|
|||
void MovieOptionsDialog_t::readOnlyReplayChanged(int state)
|
||||
{
|
||||
suggestReadOnlyReplay = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.SuggestReadOnlyReplay" , suggestReadOnlyReplay);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::pauseAfterPlayChanged(int state)
|
||||
{
|
||||
pauseAfterPlayback = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.PauseAfterMoviePlayback", pauseAfterPlayback);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::closeAfterPlayChanged(int state)
|
||||
{
|
||||
closeFinishedMovie = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.CloseFinishedMovie", closeFinishedMovie);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::bindSaveStatesChanged(int state)
|
||||
{
|
||||
bindSavestate = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.MovieBindSavestate", bindSavestate);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::dpySubTitlesChanged(int state)
|
||||
|
@ -220,6 +228,8 @@ void MovieOptionsDialog_t::dpySubTitlesChanged(int state)
|
|||
void MovieOptionsDialog_t::putSubTitlesAviChanged(int state)
|
||||
{
|
||||
subtitlesOnAVI = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.SubtitlesOnAVI", subtitlesOnAVI);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::setAviHudEnable(int state)
|
||||
|
@ -250,11 +260,15 @@ void MovieOptionsDialog_t::setAviAudioEnable(int state)
|
|||
void MovieOptionsDialog_t::autoBackUpChanged(int state)
|
||||
{
|
||||
autoMovieBackup = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.AutoMovieBackup", autoMovieBackup);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::loadFullStatesChanged(int state)
|
||||
{
|
||||
fullSaveStateLoads = (state != Qt::Unchecked);
|
||||
|
||||
g_config->setOption("SDL.MovieFullSaveStateLoads", fullSaveStateLoads);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void MovieOptionsDialog_t::aviBackendChanged(int idx)
|
||||
|
|
|
@ -696,6 +696,14 @@ InitConfig()
|
|||
config->addOption("subtitles", "SDL.SubtitleDisplay", 1);
|
||||
config->addOption("movielength", "SDL.MovieLength", 0);
|
||||
|
||||
config->addOption("SDL.SuggestReadOnlyReplay" , 1 );
|
||||
config->addOption("SDL.PauseAfterMoviePlayback", 0 );
|
||||
config->addOption("SDL.CloseFinishedMovie" , 0 );
|
||||
config->addOption("SDL.MovieBindSavestate" , 1 );
|
||||
config->addOption("SDL.SubtitlesOnAVI" , 0 );
|
||||
config->addOption("SDL.AutoMovieBackup" , 0 );
|
||||
config->addOption("SDL.MovieFullSaveStateLoads", 0 );
|
||||
|
||||
config->addOption("fourscore", "SDL.FourScore", 0);
|
||||
|
||||
config->addOption("nofscursor", "SDL.NoFullscreenCursor", 1);
|
||||
|
|
|
@ -766,6 +766,14 @@ int fceuWrapperInit( int argc, char *argv[] )
|
|||
else
|
||||
FCEUI_SetAviEnableHUDrecording(false);
|
||||
|
||||
g_config->getOption("SDL.SuggestReadOnlyReplay" , &suggestReadOnlyReplay);
|
||||
g_config->getOption("SDL.PauseAfterMoviePlayback", &pauseAfterPlayback);
|
||||
g_config->getOption("SDL.CloseFinishedMovie" , &closeFinishedMovie);
|
||||
g_config->getOption("SDL.MovieBindSavestate" , &bindSavestate);
|
||||
g_config->getOption("SDL.SubtitlesOnAVI" , &subtitlesOnAVI);
|
||||
g_config->getOption("SDL.AutoMovieBackup" , &autoMovieBackup);
|
||||
g_config->getOption("SDL.MovieFullSaveStateLoads", &fullSaveStateLoads);
|
||||
|
||||
// check to see if movie messages are disabled
|
||||
int mm;
|
||||
g_config->getOption("SDL.MovieMsg", &mm);
|
||||
|
|
Loading…
Reference in New Issue