fix savestates in SC mode at least

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@779 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
memberTwo.mb2 2008-10-05 11:52:44 +00:00
parent adb549254e
commit 407bd39d8b
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ void Fifo_DoState(PointerWrap &p)
{ {
p.DoArray(videoBuffer, FIFO_SIZE); p.DoArray(videoBuffer, FIFO_SIZE);
p.Do(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() void Fifo_Init()