Add an option to pause on the last frame of a movie.

This commit is contained in:
rog 2012-11-10 21:57:31 -05:00
commit 35e5a1e592
7 changed files with 17 additions and 0 deletions

View file

@ -131,6 +131,7 @@ void SConfig::SaveSettings()
// General
ini.Set("General", "LastFilename", m_LastFilename);
ini.Set("General", "PauseMovie", m_pauseMovie);
// ISO folders
// clear removed folders
@ -260,6 +261,7 @@ void SConfig::LoadSettings()
// General
{
ini.Get("General", "LastFilename", &m_LastFilename);
ini.Get("General", "PauseMovie", &m_pauseMovie, false);
m_ISOFolder.clear();
int numGCMPaths;

View file

@ -75,6 +75,7 @@ struct SConfig : NonCopyable
bool m_ListKorea;
bool m_ListTaiwan;
bool m_ListUnknown;
bool m_pauseMovie;
SysConf* m_SYSCONF;

View file

@ -92,6 +92,10 @@ std::string GetInputDisplay()
void FrameUpdate()
{
if (SConfig::GetInstance().m_pauseMovie && IsPlayingInput() && g_currentInputCount == g_totalInputCount -1)
{
Core::SetState(Core::CORE_PAUSE);
}
g_currentFrame++;
if(!g_bPolled)
g_currentLagCount++;