mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-13 09:51:31 +02:00
Core: Save movie state before video backend state
Fixes the old frame number/inputs being displayed after loading state.
This commit is contained in:
parent
560074cf9f
commit
63358adfb1
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user