diff options
| author | Stenzek <stenzek@gmail.com> | 2019-06-30 00:24:41 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-07-24 05:19:22 +1000 |
| commit | 63358adfb144f9a935a819358bc73e3769eaea8c (patch) | |
| tree | 66a30e8acce8420f4a5a0831e8def2add08a4437 /Source/Core | |
| parent | 560074cf9fed14ff263e3ba7c815af9e4ec1ad4e (diff) | |
Core: Save movie state before video backend state
Fixes the old frame number/inputs being displayed after loading state.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/State.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 1350fa9b09..cd4544b8f1 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -170,6 +170,11 @@ static void DoState(PointerWrap& p) return; } + // Movie must be done before the video backend, because the window is redrawn in the video backend + // state load, and the frame number must be up-to-date. + Movie::DoState(p); + p.DoMarker("Movie"); + // Begin with video backend, so that it gets a chance to clear its caches and writeback modified // things to RAM g_video_backend->DoState(p); @@ -186,8 +191,6 @@ static void DoState(PointerWrap& p) if (SConfig::GetInstance().bWii) Wiimote::DoState(p); p.DoMarker("Wiimote"); - Movie::DoState(p); - p.DoMarker("Movie"); Gecko::DoState(p); p.DoMarker("Gecko"); |
