Not sure if this is the right way to handle this, but it makes the save states perfectly stable. That's all that really matters, right?

This commit is contained in:
Rachel Bryk 2013-02-26 18:43:37 -05:00
parent 08fe3c213a
commit 46f5c19c6d
2 changed files with 4 additions and 4 deletions

View File

@ -55,9 +55,8 @@ void DoState(PointerWrap &p)
p.Do(lastPrimCmd);
p.Do(streamSize);
p.Do(streamAddress);
// not sure how to save this... It seems to be the only thing left that is really important.
// uncommenting this will prevent all error messages, and any crashes/hangs on load, but then obviously it'll segfault once you restart dolphin.
//p.Do(currentFunction);
if (p.GetMode() == PointerWrap::MODE_READ)
ResetDecoding();
}
void DecodePrimitiveStream(u32 iBufferSize)

View File

@ -103,7 +103,8 @@ void VideoSoftware::DoState(PointerWrap& p)
if (p.GetMode() == PointerWrap::MODE_READ && software == false)
// change mode to abort load of incompatible save state.
p.SetMode(PointerWrap::MODE_VERIFY);
// TODO: incomplete
// TODO: incomplete?
SWCommandProcessor::DoState(p);
SWPixelEngine::DoState(p);
EfbInterface::DoState(p);