Merge pull request #4420 from unknownbrackets/savestates

Enable rewind feature in UI, fix a savestate bug
This commit is contained in:
Henrik Rydgård 2013-11-03 03:21:51 -08:00
commit b2298a9e86
8 changed files with 50 additions and 7 deletions

View file

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