Merge pull request #4420 from unknownbrackets/savestates
Enable rewind feature in UI, fix a savestate bug
This commit is contained in:
commit
b2298a9e86
8 changed files with 50 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue