diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-11-02 16:26:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-02 16:26:48 +0100 |
| commit | 342c053bf5fbd6775822467b48b548b9e458e2a5 (patch) | |
| tree | d4d83b1e34764299c8b5312079c00d0e40572a78 /Source/Core | |
| parent | 9ce1cdde98bb9c569fe27d952240f69bcdc14720 (diff) | |
| parent | c170f0b46061407922aa50f8828bfe502fc17759 (diff) | |
Merge pull request #4368 from JosJuice/updatewantdeterminism-loadinput
Movie: Add missing calls to UpdateWantDeterminism
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Movie.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 14fe29546d..a6b48b790e 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -12,6 +12,7 @@ #include <thread> #include <vector> +#include "Common/Assert.h" #include "Common/ChunkFile.h" #include "Common/CommonPaths.h" #include "Common/FileUtil.h" @@ -1151,6 +1152,7 @@ void LoadInput(const std::string& filename) if (s_playMode != MODE_PLAYING) { s_playMode = MODE_PLAYING; + Core::UpdateWantDeterminism(); Core::DisplayMessage("Switched to playback", 2000); } } @@ -1159,6 +1161,7 @@ void LoadInput(const std::string& filename) if (s_playMode != MODE_RECORDING) { s_playMode = MODE_RECORDING; + Core::UpdateWantDeterminism(); Core::DisplayMessage("Switched to recording", 2000); } } @@ -1335,6 +1338,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); } |
