Movie: Fix "Pause at End of Movie" for wii games.

InputUpdate() is never called during wii playback, so the pause never
executed.
This commit is contained in:
rabbott99 2015-12-30 22:49:12 -05:00
parent 330329254c
commit d2ef903d1a
1 changed files with 3 additions and 3 deletions

View File

@ -228,9 +228,6 @@ void InputUpdate()
s_totalTickCount += CoreTiming::GetTicks() - s_tickCountAtLastInput; s_totalTickCount += CoreTiming::GetTicks() - s_tickCountAtLastInput;
s_tickCountAtLastInput = CoreTiming::GetTicks(); s_tickCountAtLastInput = CoreTiming::GetTicks();
} }
if (IsPlayingInput() && g_currentInputCount == (g_totalInputCount - 1) && SConfig::GetInstance().m_PauseMovie)
Core::SetState(Core::CORE_PAUSE);
} }
void SetFrameSkipping(unsigned int framesToSkip) void SetFrameSkipping(unsigned int framesToSkip)
@ -1205,6 +1202,9 @@ void EndPlayInput(bool cont)
//g_totalFrames = s_totalBytes = 0; //g_totalFrames = s_totalBytes = 0;
//delete tmpInput; //delete tmpInput;
//tmpInput = nullptr; //tmpInput = nullptr;
if (SConfig::GetInstance().m_PauseMovie)
Core::SetState(Core::CORE_PAUSE);
} }
} }