A lot of save state groundwork. Please notify if compilation breaks because

I haven't compiled


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@368 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2008-08-28 07:58:04 +00:00
parent 8a33d6787b
commit 051c2e0784
10 changed files with 60 additions and 61 deletions

View File

@ -18,12 +18,34 @@
#include "VideoState.h"
#include "TextureDecoder.h"
void VideoCommon_SaveState() {
//PanicAlert("Saving state from Video Common Library");
//TODO: Save the video state
void DoState(ChunkFile &f) {
// BP Memory
f.Do(bpmem);
// CP Memory
f.Do(arraybases);
f.Do(arraystrides);
f.Do(MatrixIndexA);
f.Do(MatrixIndexB);
// XF Memory
f.Do(xfregs);
f.Do(xfmem);
// Texture decoder
f.Do(texMem);
// FIFO
f.Do(size);
f.DoArray(videoBuffer, sizeof(u8), size);
f.Do(readptr);
//TODO: Check for more pointers in the data structures and make them
// serializable
}
void VideoCommon_LoadState() {
//PanicAlert("Loading state from Video Common Library");
//TODO: Load the video state
void VideoCommon_DoState(ChunkFile &f) {
//PanicAlert("Saving state from Video Common Library");
//TODO: Save the video state
f.Descend("VID ");
f.DoState(f);
f.Ascend();
}