Retain threadend waits in savestates.

Oops, been broken since 3fb2c8f654cafe85e50586bb51d8a3c4c0e10674.
This commit is contained in:
Unknown W. Brackets 2013-11-02 17:40:23 -07:00
parent 5490ed441a
commit f716d781b6

View File

@ -520,7 +520,7 @@ public:
virtual void DoState(PointerWrap &p) virtual void DoState(PointerWrap &p)
{ {
auto s = p.Section("Thread", 1); auto s = p.Section("Thread", 1, 2);
if (!s) if (!s)
return; return;
@ -537,6 +537,12 @@ public:
p.Do(pendingMipsCalls); p.Do(pendingMipsCalls);
p.Do(pushedStacks); p.Do(pushedStacks);
p.Do(currentStack); p.Do(currentStack);
if (s >= 2)
{
p.Do(waitingThreads);
p.Do(pausedWaits);
}
} }
NativeThread nt; NativeThread nt;