Added missing settings from Qt movie options window to saved config.

This commit is contained in:
mjbudd77 2021-09-28 22:39:40 -04:00
parent fa84da706f
commit 3f4a7f55d5
3 changed files with 30 additions and 0 deletions

View File

@ -193,21 +193,29 @@ void MovieOptionsDialog_t::closeWindow(void)
void MovieOptionsDialog_t::readOnlyReplayChanged(int state) void MovieOptionsDialog_t::readOnlyReplayChanged(int state)
{ {
suggestReadOnlyReplay = (state != Qt::Unchecked); suggestReadOnlyReplay = (state != Qt::Unchecked);
g_config->setOption("SDL.SuggestReadOnlyReplay" , suggestReadOnlyReplay);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::pauseAfterPlayChanged(int state) void MovieOptionsDialog_t::pauseAfterPlayChanged(int state)
{ {
pauseAfterPlayback = (state != Qt::Unchecked); pauseAfterPlayback = (state != Qt::Unchecked);
g_config->setOption("SDL.PauseAfterMoviePlayback", pauseAfterPlayback);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::closeAfterPlayChanged(int state) void MovieOptionsDialog_t::closeAfterPlayChanged(int state)
{ {
closeFinishedMovie = (state != Qt::Unchecked); closeFinishedMovie = (state != Qt::Unchecked);
g_config->setOption("SDL.CloseFinishedMovie", closeFinishedMovie);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::bindSaveStatesChanged(int state) void MovieOptionsDialog_t::bindSaveStatesChanged(int state)
{ {
bindSavestate = (state != Qt::Unchecked); bindSavestate = (state != Qt::Unchecked);
g_config->setOption("SDL.MovieBindSavestate", bindSavestate);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::dpySubTitlesChanged(int state) void MovieOptionsDialog_t::dpySubTitlesChanged(int state)
@ -220,6 +228,8 @@ void MovieOptionsDialog_t::dpySubTitlesChanged(int state)
void MovieOptionsDialog_t::putSubTitlesAviChanged(int state) void MovieOptionsDialog_t::putSubTitlesAviChanged(int state)
{ {
subtitlesOnAVI = (state != Qt::Unchecked); subtitlesOnAVI = (state != Qt::Unchecked);
g_config->setOption("SDL.SubtitlesOnAVI", subtitlesOnAVI);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::setAviHudEnable(int state) void MovieOptionsDialog_t::setAviHudEnable(int state)
@ -250,11 +260,15 @@ void MovieOptionsDialog_t::setAviAudioEnable(int state)
void MovieOptionsDialog_t::autoBackUpChanged(int state) void MovieOptionsDialog_t::autoBackUpChanged(int state)
{ {
autoMovieBackup = (state != Qt::Unchecked); autoMovieBackup = (state != Qt::Unchecked);
g_config->setOption("SDL.AutoMovieBackup", autoMovieBackup);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::loadFullStatesChanged(int state) void MovieOptionsDialog_t::loadFullStatesChanged(int state)
{ {
fullSaveStateLoads = (state != Qt::Unchecked); fullSaveStateLoads = (state != Qt::Unchecked);
g_config->setOption("SDL.MovieFullSaveStateLoads", fullSaveStateLoads);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void MovieOptionsDialog_t::aviBackendChanged(int idx) void MovieOptionsDialog_t::aviBackendChanged(int idx)

View File

@ -696,6 +696,14 @@ InitConfig()
config->addOption("subtitles", "SDL.SubtitleDisplay", 1); config->addOption("subtitles", "SDL.SubtitleDisplay", 1);
config->addOption("movielength", "SDL.MovieLength", 0); 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("fourscore", "SDL.FourScore", 0);
config->addOption("nofscursor", "SDL.NoFullscreenCursor", 1); config->addOption("nofscursor", "SDL.NoFullscreenCursor", 1);

View File

@ -766,6 +766,14 @@ int fceuWrapperInit( int argc, char *argv[] )
else else
FCEUI_SetAviEnableHUDrecording(false); 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 // check to see if movie messages are disabled
int mm; int mm;
g_config->getOption("SDL.MovieMsg", &mm); g_config->getOption("SDL.MovieMsg", &mm);