mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
State saving progress. Most core state seems to be saved/loaded correctly, not so for video yet unfortunately.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@386 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -23,22 +23,25 @@
|
||||
#include "TextureDecoder.h"
|
||||
#include "Fifo.h"
|
||||
|
||||
static void DoState(PointerWrap &p) {
|
||||
// BP Memory
|
||||
p.Do(bpmem);
|
||||
// CP Memory
|
||||
p.DoArray(arraybases, 16);
|
||||
p.DoArray(arraystrides, 16);
|
||||
p.Do(MatrixIndexA);
|
||||
p.Do(MatrixIndexB);
|
||||
// XF Memory
|
||||
p.Do(xfregs);
|
||||
p.DoArray(xfmem, XFMEM_SIZE);
|
||||
// Texture decoder
|
||||
p.DoArray(texMem, TMEM_SIZE);
|
||||
|
||||
// FIFO
|
||||
Fifo_DoState(p);
|
||||
}
|
||||
|
||||
void VideoCommon_DoState(PointerWrap &p) {
|
||||
// BP Memory
|
||||
p.Do(bpmem);
|
||||
// CP Memory
|
||||
p.Do(arraybases);
|
||||
p.Do(arraystrides);
|
||||
p.Do(MatrixIndexA);
|
||||
p.Do(MatrixIndexB);
|
||||
// XF Memory
|
||||
p.Do(xfregs);
|
||||
p.Do(xfmem);
|
||||
// Texture decoder
|
||||
p.Do(texMem);
|
||||
|
||||
// FIFO
|
||||
Fifo_DoState(p);
|
||||
|
||||
DoState(p);
|
||||
//TODO: search for more data that should be saved and add it here
|
||||
}
|
||||
|
Reference in New Issue
Block a user