mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Movie: Add missing calls to UpdateWantDeterminism
Fixes https://bugs.dolphin-emu.org/issues/9681
This commit is contained in:
parent
43169d897f
commit
c170f0b460
@ -10,6 +10,7 @@
|
||||
#include <mbedtls/md.h>
|
||||
#include <mutex>
|
||||
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/ChunkFile.h"
|
||||
#include "Common/CommonPaths.h"
|
||||
#include "Common/FileUtil.h"
|
||||
@ -1149,6 +1150,7 @@ void LoadInput(const std::string& filename)
|
||||
if (s_playMode != MODE_PLAYING)
|
||||
{
|
||||
s_playMode = MODE_PLAYING;
|
||||
Core::UpdateWantDeterminism();
|
||||
Core::DisplayMessage("Switched to playback", 2000);
|
||||
}
|
||||
}
|
||||
@ -1157,6 +1159,7 @@ void LoadInput(const std::string& filename)
|
||||
if (s_playMode != MODE_RECORDING)
|
||||
{
|
||||
s_playMode = MODE_RECORDING;
|
||||
Core::UpdateWantDeterminism();
|
||||
Core::DisplayMessage("Switched to recording", 2000);
|
||||
}
|
||||
}
|
||||
@ -1333,6 +1336,9 @@ void EndPlayInput(bool cont)
|
||||
{
|
||||
if (cont)
|
||||
{
|
||||
// If !IsMovieActive(), changing s_playMode requires calling UpdateWantDeterminism
|
||||
_assert_(IsMovieActive());
|
||||
|
||||
s_playMode = MODE_RECORDING;
|
||||
Core::DisplayMessage("Reached movie end. Resuming recording.", 2000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user