summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/Fifo.cpp
diff options
context:
space:
mode:
authormemberTwo.mb2 <memberTwo.mb2@gmail.com>2008-10-05 11:52:44 +0000
committermemberTwo.mb2 <memberTwo.mb2@gmail.com>2008-10-05 11:52:44 +0000
commit407bd39d8b31a9598b75dd1ab2fd08c6697f2fe5 (patch)
treee1f3c8f323bf6913d1c9d47008525aef26b1cb01 /Source/Core/VideoCommon/Src/Fifo.cpp
parentadb549254ef052b4333959b3f1425e997321404a (diff)
fix savestates in SC mode at least
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@779 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index 09517d4da8..2313c2a93b 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -35,7 +35,9 @@ void Fifo_DoState(PointerWrap &p)
{
p.DoArray(videoBuffer, FIFO_SIZE);
p.Do(size);
- // TODO : savestate of the old readptr equivalent
+ int pos = (int)(g_pVideoData-videoBuffer); // get offset
+ p.Do(pos); // read or write offset (depends on the mode afaik)
+ g_pVideoData = &videoBuffer[pos]; // overwrite g_pVideoData -> expected no change when load ss and change when save ss
}
void Fifo_Init()