mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user