Merge pull request #10457 from Pokechu22/movie-no-pause-menubar-desync
Fix menu bar becoming desynced when Pause at End of Movie is disabled
This commit is contained in:
commit
1e126d23e6
|
@ -1324,7 +1324,7 @@ void EndPlayInput(bool cont)
|
||||||
{
|
{
|
||||||
// We can be called by EmuThread during boot (CPU::State::PowerDown)
|
// We can be called by EmuThread during boot (CPU::State::PowerDown)
|
||||||
bool was_running = Core::IsRunningAndStarted() && !CPU::IsStepping();
|
bool was_running = Core::IsRunningAndStarted() && !CPU::IsStepping();
|
||||||
if (was_running)
|
if (was_running && Config::Get(Config::MAIN_MOVIE_PAUSE_MOVIE))
|
||||||
CPU::Break();
|
CPU::Break();
|
||||||
s_rerecords = 0;
|
s_rerecords = 0;
|
||||||
s_currentByte = 0;
|
s_currentByte = 0;
|
||||||
|
@ -1337,11 +1337,7 @@ void EndPlayInput(bool cont)
|
||||||
// delete tmpInput;
|
// delete tmpInput;
|
||||||
// tmpInput = nullptr;
|
// tmpInput = nullptr;
|
||||||
|
|
||||||
Core::QueueHostJob([=] {
|
Core::QueueHostJob([=] { Core::UpdateWantDeterminism(); });
|
||||||
Core::UpdateWantDeterminism();
|
|
||||||
if (was_running && !Config::Get(Config::MAIN_MOVIE_PAUSE_MOVIE))
|
|
||||||
CPU::EnableStepping(false);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue