summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2013-02-26 18:43:37 -0500
committerRachel Bryk <RachelBryk@gmail.com>2013-02-26 18:52:38 -0500
commit46f5c19c6d2fbd3318e9a6de3c3c2e313c669cf0 (patch)
tree8d2f2204ce7ec0fa0ea0598134fcf9f2f67255ac /Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
parent08fe3c213ad71e903fed83edfada5a79c75f11f9 (diff)
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?
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
index 4401916e1f..8e3f0c2925 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
@@ -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)