mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Fix savestates when videos are playing.
This commit is contained in:
1 parent
e2ac7cab92
commit
c1dcebce07
1 file changed
+6
-1
@@ -188,7 +188,7 @@ void MediaEngine::closeMedia() {
|
||||
}
|
||||
|
||||
void MediaEngine::DoState(PointerWrap &p){
|
||||
auto s = p.Section("MediaEngine", 1);
|
||||
auto s = p.Section("MediaEngine", 1, 2);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
@@ -219,6 +219,11 @@ void MediaEngine::DoState(PointerWrap &p){
|
||||
p.Do(m_videopts);
|
||||
p.Do(m_audiopts);
|
||||
|
||||
if (s >= 2) {
|
||||
p.Do(m_firstTimeStamp);
|
||||
p.Do(m_lastTimeStamp);
|
||||
}
|
||||
|
||||
p.Do(m_isVideoEnd);
|
||||
p.Do(m_noAudioData);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user