mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-02 14:18:51 +00:00
Add an option to pause on the last frame of a movie.
This commit is contained in:
parent
ab48e1154b
commit
35e5a1e592
7 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -75,6 +75,7 @@ struct SConfig : NonCopyable
|
|||
bool m_ListKorea;
|
||||
bool m_ListTaiwan;
|
||||
bool m_ListUnknown;
|
||||
bool m_pauseMovie;
|
||||
|
||||
SysConf* m_SYSCONF;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue