Added save/load state support in the UI

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@375 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2008-08-28 21:30:13 +00:00
parent 1716ef46bb
commit 2e760d69fe
6 changed files with 77 additions and 18 deletions

View File

@ -33,11 +33,14 @@ static void DoState(ChunkFile &f) {
f.Do(MatrixIndexB);
// XF Memory
f.Do(xfregs);
PanicAlert("video: XFMem");
f.Do(xfmem);
PanicAlert("video: Texture decoder");
// Texture decoder
f.Do(texMem);
// FIFO
PanicAlert("video: FIFO");
Fifo_DoState(f);
//TODO: Check for more pointers in the data structures and make them
@ -45,9 +48,10 @@ static void DoState(ChunkFile &f) {
}
void VideoCommon_DoState(ChunkFile &f) {
//PanicAlert("Saving state from Video Common Library");
PanicAlert("Saving state from Video Common Library");
//TODO: Save the video state
f.Descend("VID ");
DoState(f);
f.Ascend();
PanicAlert("END save video");
}